Interface OAuth2AuthorizationService
- All Known Implementing Classes:
InMemoryOAuth2AuthorizationService,JdbcOAuth2AuthorizationService
public interface OAuth2AuthorizationService
Implementations of this interface are responsible for the management of
OAuth 2.0 Authorization(s).- Since:
- 0.0.1
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionfindByToken(String token, OAuth2TokenType tokenType) voidremove(OAuth2Authorization authorization) Removes theOAuth2Authorization.voidsave(OAuth2Authorization authorization) Saves theOAuth2Authorization.
-
Method Details
-
save
Saves theOAuth2Authorization.- Parameters:
authorization- theOAuth2Authorization
-
remove
Removes theOAuth2Authorization.- Parameters:
authorization- theOAuth2Authorization
-
findById
- Parameters:
id- the authorization identifier- Returns:
- the
OAuth2Authorizationif found, otherwisenull
-
findByToken
- Parameters:
token- the token credentialtokenType- thetoken type- Returns:
- the
OAuth2Authorizationif found, otherwisenull
-