Interface OAuth2AuthorizationConsentService
- All Known Implementing Classes:
InMemoryOAuth2AuthorizationConsentService
,JdbcOAuth2AuthorizationConsentService
public interface OAuth2AuthorizationConsentService
Implementations of this interface are responsible for the management of
OAuth 2.0 Authorization Consent(s)
.- Since:
- 0.1.2
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns theOAuth2AuthorizationConsent
identified by the providedregisteredClientId
andprincipalName
, ornull
if not found.void
remove
(OAuth2AuthorizationConsent authorizationConsent) Removes theOAuth2AuthorizationConsent
.void
save
(OAuth2AuthorizationConsent authorizationConsent) Saves theOAuth2AuthorizationConsent
.
-
Method Details
-
save
Saves theOAuth2AuthorizationConsent
.- Parameters:
authorizationConsent
- theOAuth2AuthorizationConsent
-
remove
Removes theOAuth2AuthorizationConsent
.- Parameters:
authorizationConsent
- theOAuth2AuthorizationConsent
-
findById
Returns theOAuth2AuthorizationConsent
identified by the providedregisteredClientId
andprincipalName
, ornull
if not found.- Parameters:
registeredClientId
- the identifier for theRegisteredClient
principalName
- the name of thePrincipal
- Returns:
- the
OAuth2AuthorizationConsent
if found, otherwisenull
-