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
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
org.springframework.security.oauth2.server.authorization.OAuth2Authorization
fromMe
(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()
int
hashCode()
void
setAccessTokenExpiresAt
(Long accessTokenExpiresAt) void
setAccessTokenIssuedAt
(Long accessTokenIssuedAt) void
setAccessTokenMetadata
(String accessTokenMetadata) void
setAccessTokenScopes
(String accessTokenScopes) void
setAccessTokenType
(String accessTokenType) void
setAccessTokenValue
(String accessTokenValue) void
setAccessTokenValueHash
(String accessTokenValueHash) The column length ofgetAccessTokenValue()
forces it to be a non-queryable, non-indexable Lob on certain database providers.void
setAttributes
(String attributes) void
setAuthorizationCodeExpiresAt
(Long authorizationCodeExpiresAt) void
setAuthorizationCodeIssuedAt
(Long authorizationCodeIssuedAt) void
setAuthorizationCodeMetadata
(String authorizationCodeMetadata) void
setAuthorizationCodeValue
(String authorizationCodeValue) void
setAuthorizationGrantType
(String authorizationGrantType) void
setAuthorizedScopes
(String authorizedScopes) void
setDeviceCodeExpiresAt
(Long deviceCodeExpiresAt) void
setDeviceCodeIssuedAt
(Long deviceCodeIssuedAt) void
setDeviceCodeMetadata
(String deviceCodeMetadata) void
setDeviceCodeValue
(String deviceCodeValue) void
void
setOicdIdTokenExpiresAt
(Long oicdIdTokenExpiresAt) void
void
setOidcIdTokenIssuedAt
(Long oidcIdTokenIssuedAt) void
setOidcIdTokenMetadata
(String oidcIdTokenMetadata) void
setOidcIdTokenValue
(String oidcIdTokenValue) void
setOidcIdTokenValueHash
(String oidcIdTokenValueHash) The column length ofgetOidcIdTokenValue()
forces it to be a non-queryable, non-indexable Lob on certain database providers.void
setPrincipalName
(String principalName) void
setRefreshTokenExpiresAt
(Long refreshTokenExpiresAt) void
setRefreshTokenIssuedAt
(Long refreshTokenIssuedAt) void
setRefreshTokenMetadata
(String refreshTokenMetadata) void
setRefreshTokenValue
(String refreshTokenValue) void
setRegisteredClientId
(String registeredClientId) void
void
setUserCodeExpiresAt
(Long userCodeExpiresAt) void
setUserCodeIssuedAt
(Long userCodeIssuedAt) void
setUserCodeMetadata
(String userCodeMetadata) void
setUserCodeValue
(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()
-