Package io.meeds.oauth2.server.storage
Class OAuthTokenStorage
java.lang.Object
io.meeds.oauth2.server.storage.OAuthTokenStorage
- All Implemented Interfaces:
org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService
@Component
public class OAuthTokenStorage
extends Object
implements org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintvoiddeleteByClientId(String clientId) voiddeleteByUser(String username) voiddeleteByUserAndClientId(String username, String clientId) findByClientId(String clientId) org.springframework.security.oauth2.server.authorization.OAuth2Authorizationorg.springframework.security.oauth2.server.authorization.OAuth2AuthorizationfindByToken(String token, org.springframework.security.oauth2.server.authorization.OAuth2TokenType tokenType) findByUser(String username) findByUserAndClientId(String username, String clientId) voidremove(org.springframework.security.oauth2.server.authorization.OAuth2Authorization authorization) voidsave(org.springframework.security.oauth2.server.authorization.OAuth2Authorization authorization)
-
Constructor Details
-
OAuthTokenStorage
public OAuthTokenStorage()
-
-
Method Details
-
save
public void save(org.springframework.security.oauth2.server.authorization.OAuth2Authorization authorization) - Specified by:
savein interfaceorg.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService
-
remove
public void remove(org.springframework.security.oauth2.server.authorization.OAuth2Authorization authorization) - Specified by:
removein interfaceorg.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService
-
findById
public org.springframework.security.oauth2.server.authorization.OAuth2Authorization findById(String id) - Specified by:
findByIdin interfaceorg.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService
-
findByToken
public org.springframework.security.oauth2.server.authorization.OAuth2Authorization findByToken(String token, org.springframework.security.oauth2.server.authorization.OAuth2TokenType tokenType) - Specified by:
findByTokenin interfaceorg.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService
-
findByUserAndClientId
-
findByUser
-
findByClientId
-
deleteByUserAndClientId
-
deleteByClientId
-
deleteByUser
-
cleanExpiredTokens
public int cleanExpiredTokens()
-