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 theOAuth2AuthorizationConsentidentified by the providedregisteredClientIdandprincipalName, ornullif not found.voidremove(OAuth2AuthorizationConsent authorizationConsent) Removes theOAuth2AuthorizationConsent.voidsave(OAuth2AuthorizationConsent authorizationConsent) Saves theOAuth2AuthorizationConsent.
-
Method Details
-
save
Saves theOAuth2AuthorizationConsent.- Parameters:
authorizationConsent- theOAuth2AuthorizationConsent
-
remove
Removes theOAuth2AuthorizationConsent.- Parameters:
authorizationConsent- theOAuth2AuthorizationConsent
-
findById
Returns theOAuth2AuthorizationConsentidentified by the providedregisteredClientIdandprincipalName, ornullif not found.- Parameters:
registeredClientId- the identifier for theRegisteredClientprincipalName- the name of thePrincipal- Returns:
- the
OAuth2AuthorizationConsentif found, otherwisenull
-