public class ResettableOAuth2AuthorizedClientService extends Object implements org.springframework.security.oauth2.client.OAuth2AuthorizedClientService
InMemoryOAuth2AuthorizedClientService but with the capability to reset the
authorized clients (e.g. on update of a OidcClient.| Constructor and Description |
|---|
ResettableOAuth2AuthorizedClientService(org.springframework.security.oauth2.client.registration.ClientRegistrationRepository clientRegistrationRepository)
Copy of
InMemoryOAuth2AuthorizedClientService.InMemoryOAuth2AuthorizedClientService(ClientRegistrationRepository) |
| Modifier and Type | Method and Description |
|---|---|
<T extends org.springframework.security.oauth2.client.OAuth2AuthorizedClient> |
loadAuthorizedClient(String clientRegistrationId,
String principalName)
Copy of
InMemoryOAuth2AuthorizedClientService.loadAuthorizedClient(String, String) |
void |
removeAuthorizedClient(String clientRegistrationId,
String principalName)
Copy of
InMemoryOAuth2AuthorizedClientService.removeAuthorizedClient(String, String) |
void |
reset() |
void |
saveAuthorizedClient(org.springframework.security.oauth2.client.OAuth2AuthorizedClient authorizedClient,
org.springframework.security.core.Authentication principal)
Copy of
InMemoryOAuth2AuthorizedClientService.saveAuthorizedClient(OAuth2AuthorizedClient,
Authentication) |
public ResettableOAuth2AuthorizedClientService(org.springframework.security.oauth2.client.registration.ClientRegistrationRepository clientRegistrationRepository)
InMemoryOAuth2AuthorizedClientService.InMemoryOAuth2AuthorizedClientService(ClientRegistrationRepository)public <T extends org.springframework.security.oauth2.client.OAuth2AuthorizedClient> T loadAuthorizedClient(String clientRegistrationId, String principalName)
InMemoryOAuth2AuthorizedClientService.loadAuthorizedClient(String, String)loadAuthorizedClient in interface org.springframework.security.oauth2.client.OAuth2AuthorizedClientServicepublic void saveAuthorizedClient(org.springframework.security.oauth2.client.OAuth2AuthorizedClient authorizedClient,
org.springframework.security.core.Authentication principal)
InMemoryOAuth2AuthorizedClientService.saveAuthorizedClient(OAuth2AuthorizedClient,
Authentication)saveAuthorizedClient in interface org.springframework.security.oauth2.client.OAuth2AuthorizedClientServicepublic void removeAuthorizedClient(String clientRegistrationId, String principalName)
InMemoryOAuth2AuthorizedClientService.removeAuthorizedClient(String, String)removeAuthorizedClient in interface org.springframework.security.oauth2.client.OAuth2AuthorizedClientServicepublic void reset()
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.