public final class InMemoryOAuth2AuthorizationService extends Object implements OAuth2AuthorizationService
OAuth2AuthorizationService
that stores OAuth2Authorization
's in-memory.OAuth2AuthorizationService
Constructor and Description |
---|
InMemoryOAuth2AuthorizationService() |
Modifier and Type | Method and Description |
---|---|
OAuth2Authorization | findByToken(String token, TokenType tokenType) |
void | save(OAuth2Authorization authorization) Saves the OAuth2Authorization . |
public void save(OAuth2Authorization authorization)
OAuth2AuthorizationService
OAuth2Authorization
.save
in interface OAuth2AuthorizationService
authorization
- the OAuth2Authorization
public OAuth2Authorization findByToken(String token, TokenType tokenType)
OAuth2AuthorizationService
findByToken
in interface OAuth2AuthorizationService
token
- the token credentialtokenType
- the token type
OAuth2Authorization
if found, otherwise null