Class JpaOAuth2Authorization
- All Implemented Interfaces:
Serializable
OAuth2Authorization persistence.
Note - the FetchType.LAZY loading of various columns requires instrumentation via the
'hibernate-enhance-maven-plugin'.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanorg.springframework.security.oauth2.server.authorization.OAuth2AuthorizationfromMe(com.fasterxml.jackson.databind.ObjectMapper mapper) The column length ofgetAccessTokenValue()forces it to be a non-queryable, non-indexable Lob on certain database providers.getId()getOid()The column length ofgetOidcIdTokenValue()forces it to be a non-queryable, non-indexable Lob on certain database providers.getState()inthashCode()voidsetAccessTokenExpiresAt(Long accessTokenExpiresAt) voidsetAccessTokenIssuedAt(Long accessTokenIssuedAt) voidsetAccessTokenMetadata(String accessTokenMetadata) voidsetAccessTokenScopes(String accessTokenScopes) voidsetAccessTokenType(String accessTokenType) voidsetAccessTokenValue(String accessTokenValue) voidsetAccessTokenValueHash(String accessTokenValueHash) The column length ofgetAccessTokenValue()forces it to be a non-queryable, non-indexable Lob on certain database providers.voidsetAttributes(String attributes) voidsetAuthorizationCodeExpiresAt(Long authorizationCodeExpiresAt) voidsetAuthorizationCodeIssuedAt(Long authorizationCodeIssuedAt) voidsetAuthorizationCodeMetadata(String authorizationCodeMetadata) voidsetAuthorizationCodeValue(String authorizationCodeValue) voidsetAuthorizationGrantType(String authorizationGrantType) voidsetAuthorizedScopes(String authorizedScopes) voidsetDeviceCodeExpiresAt(Long deviceCodeExpiresAt) voidsetDeviceCodeIssuedAt(Long deviceCodeIssuedAt) voidsetDeviceCodeMetadata(String deviceCodeMetadata) voidsetDeviceCodeValue(String deviceCodeValue) voidvoidsetOicdIdTokenExpiresAt(Long oicdIdTokenExpiresAt) voidvoidsetOidcIdTokenIssuedAt(Long oidcIdTokenIssuedAt) voidsetOidcIdTokenMetadata(String oidcIdTokenMetadata) voidsetOidcIdTokenValue(String oidcIdTokenValue) voidsetOidcIdTokenValueHash(String oidcIdTokenValueHash) The column length ofgetOidcIdTokenValue()forces it to be a non-queryable, non-indexable Lob on certain database providers.voidsetPrincipalName(String principalName) voidsetRefreshTokenExpiresAt(Long refreshTokenExpiresAt) voidsetRefreshTokenIssuedAt(Long refreshTokenIssuedAt) voidsetRefreshTokenMetadata(String refreshTokenMetadata) voidsetRefreshTokenValue(String refreshTokenValue) voidsetRegisteredClientId(String registeredClientId) voidvoidsetUserCodeExpiresAt(Long userCodeExpiresAt) voidsetUserCodeIssuedAt(Long userCodeIssuedAt) voidsetUserCodeMetadata(String userCodeMetadata) voidsetUserCodeValue(String userCodeValue) toMe(org.springframework.security.oauth2.server.authorization.OAuth2Authorization authorization, com.fasterxml.jackson.databind.ObjectMapper mapper) toString()
-
Constructor Details
-
JpaOAuth2Authorization
public JpaOAuth2Authorization()
-
-
Method Details
-
fromMe
public org.springframework.security.oauth2.server.authorization.OAuth2Authorization fromMe(com.fasterxml.jackson.databind.ObjectMapper mapper) -
toMe
public JpaOAuth2Authorization toMe(org.springframework.security.oauth2.server.authorization.OAuth2Authorization authorization, com.fasterxml.jackson.databind.ObjectMapper mapper) -
getId
-
getRegisteredClientId
-
getPrincipalName
-
getAuthorizationGrantType
-
getAuthorizedScopes
-
getAttributes
-
getState
-
getAuthorizationCodeValue
-
getAuthorizationCodeIssuedAt
-
getAuthorizationCodeExpiresAt
-
getAuthorizationCodeMetadata
-
getAccessTokenValue
- See Also:
-
getAccessTokenValueHash
The column length ofgetAccessTokenValue()forces it to be a non-queryable, non-indexable Lob on certain database providers.This column should contain some hashed representation of the
getAccessTokenValue()(if present). The main idea is for indexing and queries to be run against this smaller hash rather than the raw value directly.Note - the hashing algorithm must be strongly collision resistant to minimize the chances of multiple values sharing the same hash. Furthermore, even with a strong hashing algorithm, all queries must account for the fact that collisions are inevitable and should not assume that a query for a particular hash will only ever return a single result. Queries should examine the result list, and if more than one result is returned for the same hash, perform direct in-memory comparison of
getAccessTokenValue()to drop unexpected results.- See Also:
-
getAccessTokenIssuedAt
-
getAccessTokenExpiresAt
-
getAccessTokenMetadata
-
getAccessTokenType
-
getAccessTokenScopes
-
getOidcIdTokenValue
- See Also:
-
getOidcIdTokenValueHash
The column length ofgetOidcIdTokenValue()forces it to be a non-queryable, non-indexable Lob on certain database providers.This column should contain some hashed representation of the
getOidcIdTokenValue()(if present). The main idea is for indexing and queries to be run against this smaller hash rather than the raw value directly.Note - the hashing algorithm must be strongly collision resistant to minimize the chances of multiple values sharing the same hash. Furthermore, even with a strong hashing algorithm, all queries must account for the fact that collisions are inevitable and should not assume that a query for a particular hash will only ever return a single result. Queries should examine the result list, and if more than one result is returned for the same hash, perform direct in-memory comparison of
getOidcIdTokenValue()to drop unexpected results.- See Also:
-
getOidcIdTokenIssuedAt
-
getOicdIdTokenExpiresAt
-
getOidcIdTokenMetadata
-
getRefreshTokenValue
-
getOid
-
getRefreshTokenIssuedAt
-
getRefreshTokenExpiresAt
-
getRefreshTokenMetadata
-
getUserCodeValue
-
getUserCodeIssuedAt
-
getUserCodeExpiresAt
-
getUserCodeMetadata
-
getDeviceCodeValue
-
getDeviceCodeIssuedAt
-
getDeviceCodeExpiresAt
-
getDeviceCodeMetadata
-
setId
-
setRegisteredClientId
-
setPrincipalName
-
setAuthorizationGrantType
-
setAuthorizedScopes
-
setAttributes
-
setState
-
setAuthorizationCodeValue
-
setAuthorizationCodeIssuedAt
-
setAuthorizationCodeExpiresAt
-
setAuthorizationCodeMetadata
-
setAccessTokenValue
- See Also:
-
setAccessTokenValueHash
The column length ofgetAccessTokenValue()forces it to be a non-queryable, non-indexable Lob on certain database providers.This column should contain some hashed representation of the
getAccessTokenValue()(if present). The main idea is for indexing and queries to be run against this smaller hash rather than the raw value directly.Note - the hashing algorithm must be strongly collision resistant to minimize the chances of multiple values sharing the same hash. Furthermore, even with a strong hashing algorithm, all queries must account for the fact that collisions are inevitable and should not assume that a query for a particular hash will only ever return a single result. Queries should examine the result list, and if more than one result is returned for the same hash, perform direct in-memory comparison of
getAccessTokenValue()to drop unexpected results.- See Also:
-
setAccessTokenIssuedAt
-
setAccessTokenExpiresAt
-
setAccessTokenMetadata
-
setAccessTokenType
-
setAccessTokenScopes
-
setOidcIdTokenValue
- See Also:
-
setOidcIdTokenValueHash
The column length ofgetOidcIdTokenValue()forces it to be a non-queryable, non-indexable Lob on certain database providers.This column should contain some hashed representation of the
getOidcIdTokenValue()(if present). The main idea is for indexing and queries to be run against this smaller hash rather than the raw value directly.Note - the hashing algorithm must be strongly collision resistant to minimize the chances of multiple values sharing the same hash. Furthermore, even with a strong hashing algorithm, all queries must account for the fact that collisions are inevitable and should not assume that a query for a particular hash will only ever return a single result. Queries should examine the result list, and if more than one result is returned for the same hash, perform direct in-memory comparison of
getOidcIdTokenValue()to drop unexpected results.- See Also:
-
setOidcIdTokenIssuedAt
-
setOicdIdTokenExpiresAt
-
setOidcIdTokenMetadata
-
setRefreshTokenValue
-
setOid
-
setRefreshTokenIssuedAt
-
setRefreshTokenExpiresAt
-
setRefreshTokenMetadata
-
setUserCodeValue
-
setUserCodeIssuedAt
-
setUserCodeExpiresAt
-
setUserCodeMetadata
-
setDeviceCodeValue
-
setDeviceCodeIssuedAt
-
setDeviceCodeExpiresAt
-
setDeviceCodeMetadata
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-