public final class InMemoryAccessTokenRepository extends java.lang.Object implements SecurityTokenRepository<AccessToken>
SecurityTokenRepository
that stores AccessToken
(s) in-memory.SecurityTokenRepository
,
AccessToken
Constructor and Description |
---|
InMemoryAccessTokenRepository() |
Modifier and Type | Method and Description |
---|---|
AccessToken |
loadSecurityToken(OAuth2AuthenticationToken authentication) |
void |
removeSecurityToken(OAuth2AuthenticationToken authentication) |
void |
saveSecurityToken(AccessToken accessToken,
OAuth2AuthenticationToken authentication) |
public AccessToken loadSecurityToken(OAuth2AuthenticationToken authentication)
loadSecurityToken
in interface SecurityTokenRepository<AccessToken>
public void saveSecurityToken(AccessToken accessToken, OAuth2AuthenticationToken authentication)
saveSecurityToken
in interface SecurityTokenRepository<AccessToken>
public void removeSecurityToken(OAuth2AuthenticationToken authentication)
removeSecurityToken
in interface SecurityTokenRepository<AccessToken>