Package io.meeds.oauth2.server.storage
Class OAuthConsentStorage
java.lang.Object
io.meeds.oauth2.server.storage.OAuthConsentStorage
- All Implemented Interfaces:
org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsentService
@Component
public class OAuthConsentStorage
extends Object
implements org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsentService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteByClientId(String clientId) voiddeleteByUser(String username) voiddeleteByUserAndClientId(String username, String clientId) findByClientId(String clientId) org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsentfindByUser(String username) findByUserAndClientId(String username, String clientId) voidremove(org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsent authorizationConsent) voidsave(org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsent authorizationConsent)
-
Constructor Details
-
OAuthConsentStorage
public OAuthConsentStorage()
-
-
Method Details
-
findById
public org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsent findById(String clientId, String username) - Specified by:
findByIdin interfaceorg.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsentService
-
save
public void save(org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsent authorizationConsent) - Specified by:
savein interfaceorg.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsentService
-
remove
public void remove(org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsent authorizationConsent) - Specified by:
removein interfaceorg.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsentService
-
findByUserAndClientId
-
findByUser
-
findByClientId
-
deleteByUserAndClientId
-
deleteByClientId
-
deleteByUser
-