public class DefaultOAuth2TokenUtilsService extends Object implements OAuth2TokenUtilsService
| Constructor and Description |
|---|
DefaultOAuth2TokenUtilsService(org.springframework.security.oauth2.client.OAuth2AuthorizedClientService oauth2AuthorizedClientService) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAccessTokenOfAuthenticatedUser()
Retrieves the access token from the
Authentication implementation. |
org.springframework.security.oauth2.client.OAuth2AuthorizedClient |
getAuthorizedClient(org.springframework.security.oauth2.client.authentication.OAuth2AuthenticationToken auth2AuthenticationToken) |
void |
removeAuthorizedClient(org.springframework.security.oauth2.client.OAuth2AuthorizedClient auth2AuthorizedClient) |
public DefaultOAuth2TokenUtilsService(org.springframework.security.oauth2.client.OAuth2AuthorizedClientService oauth2AuthorizedClientService)
public String getAccessTokenOfAuthenticatedUser()
Authentication implementation.getAccessTokenOfAuthenticatedUser in interface OAuth2TokenUtilsServicepublic org.springframework.security.oauth2.client.OAuth2AuthorizedClient getAuthorizedClient(org.springframework.security.oauth2.client.authentication.OAuth2AuthenticationToken auth2AuthenticationToken)
getAuthorizedClient in interface OAuth2TokenUtilsServicepublic void removeAuthorizedClient(org.springframework.security.oauth2.client.OAuth2AuthorizedClient auth2AuthorizedClient)
removeAuthorizedClient in interface OAuth2TokenUtilsServiceCopyright © 2020 Pivotal Software, Inc.. All rights reserved.