Interface OAuth2AuthorizedClientService
- All Known Implementing Classes:
- InMemoryOAuth2AuthorizedClientService,- JdbcOAuth2AuthorizedClientService
public interface OAuth2AuthorizedClientService
Implementations of this interface are responsible for the management of
 
Authorized Client(s), which provide the purpose of
 associating an Access Token credential
 to a Client and Resource Owner,
 who is the Principal that originally
 granted the authorization.- Since:
- 5.0
- See Also:
- 
Method SummaryModifier and TypeMethodDescription<T extends OAuth2AuthorizedClient>
 TloadAuthorizedClient(String clientRegistrationId, String principalName) Returns theOAuth2AuthorizedClientassociated to the provided client registration identifier and End-User'sPrincipalname ornullif not available.voidremoveAuthorizedClient(String clientRegistrationId, String principalName) Removes theOAuth2AuthorizedClientassociated to the provided client registration identifier and End-User'sPrincipalname.voidsaveAuthorizedClient(OAuth2AuthorizedClient authorizedClient, Authentication principal) Saves theOAuth2AuthorizedClientassociating it to the provided End-UserAuthentication(Resource Owner).
- 
Method Details- 
loadAuthorizedClient<T extends OAuth2AuthorizedClient> T loadAuthorizedClient(String clientRegistrationId, String principalName) Returns theOAuth2AuthorizedClientassociated to the provided client registration identifier and End-User'sPrincipalname ornullif not available.- Type Parameters:
- T- a type of OAuth2AuthorizedClient
- Parameters:
- clientRegistrationId- the identifier for the client's registration
- principalName- the name of the End-User- Principal(Resource Owner)
- Returns:
- the OAuth2AuthorizedClientornullif not available
 
- 
saveAuthorizedClientSaves theOAuth2AuthorizedClientassociating it to the provided End-UserAuthentication(Resource Owner).- Parameters:
- authorizedClient- the authorized client
- principal- the End-User- Authentication(Resource Owner)
 
- 
removeAuthorizedClientRemoves theOAuth2AuthorizedClientassociated to the provided client registration identifier and End-User'sPrincipalname.- Parameters:
- clientRegistrationId- the identifier for the client's registration
- principalName- the name of the End-User- Principal(Resource Owner)
 
 
-