Class JmixJdbcTokenStore
java.lang.Object
org.springframework.security.oauth2.provider.token.store.JdbcTokenStore
io.jmix.securityoauth2.token.store.JmixJdbcTokenStore
- All Implemented Interfaces:
org.springframework.security.oauth2.provider.token.TokenStore
public class JmixJdbcTokenStore
extends org.springframework.security.oauth2.provider.token.store.JdbcTokenStore
JdbcTokenStore
that can properly deserialize Jmix entities in such a way that they support lazy loading after
deserialization.-
Field Summary
-
Constructor Summary
ConstructorDescriptionJmixJdbcTokenStore
(DataSource dataSource, StandardSerialization standardSerialization) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.security.oauth2.common.OAuth2AccessToken
deserializeAccessToken
(byte[] token) protected org.springframework.security.oauth2.provider.OAuth2Authentication
deserializeAuthentication
(byte[] authentication) protected org.springframework.security.oauth2.common.OAuth2RefreshToken
deserializeRefreshToken
(byte[] token) Methods inherited from class org.springframework.security.oauth2.provider.token.store.JdbcTokenStore
extractTokenKey, findTokensByClientId, findTokensByClientIdAndUserName, findTokensByUserName, getAccessToken, readAccessToken, readAuthentication, readAuthentication, readAuthenticationForRefreshToken, readAuthenticationForRefreshToken, readRefreshToken, removeAccessToken, removeAccessToken, removeAccessTokenUsingRefreshToken, removeAccessTokenUsingRefreshToken, removeRefreshToken, removeRefreshToken, serializeAccessToken, serializeAuthentication, serializeRefreshToken, setAuthenticationKeyGenerator, setDeleteAccessTokenFromRefreshTokenSql, setDeleteAccessTokenSql, setDeleteRefreshTokenSql, setInsertAccessTokenSql, setInsertRefreshTokenSql, setSelectAccessTokenAuthenticationSql, setSelectAccessTokenFromAuthenticationSql, setSelectAccessTokensFromClientIdSql, setSelectAccessTokensFromUserNameAndClientIdSql, setSelectAccessTokensFromUserNameSql, setSelectAccessTokenSql, setSelectRefreshTokenAuthenticationSql, setSelectRefreshTokenSql, storeAccessToken, storeRefreshToken
-
Field Details
-
standardSerialization
-
-
Constructor Details
-
JmixJdbcTokenStore
-
-
Method Details
-
deserializeAccessToken
protected org.springframework.security.oauth2.common.OAuth2AccessToken deserializeAccessToken(byte[] token) - Overrides:
deserializeAccessToken
in classorg.springframework.security.oauth2.provider.token.store.JdbcTokenStore
-
deserializeRefreshToken
protected org.springframework.security.oauth2.common.OAuth2RefreshToken deserializeRefreshToken(byte[] token) - Overrides:
deserializeRefreshToken
in classorg.springframework.security.oauth2.provider.token.store.JdbcTokenStore
-
deserializeAuthentication
protected org.springframework.security.oauth2.provider.OAuth2Authentication deserializeAuthentication(byte[] authentication) - Overrides:
deserializeAuthentication
in classorg.springframework.security.oauth2.provider.token.store.JdbcTokenStore
-