public class OAuthClient extends Object
| Modifier and Type | Field and Description |
|---|---|
protected CloudCredentials |
credentials |
protected org.springframework.security.oauth2.common.OAuth2AccessToken |
token |
| Constructor and Description |
|---|
OAuthClient(URL authorizationUrl,
org.springframework.web.client.RestTemplate restTemplate) |
| Modifier and Type | Method and Description |
|---|---|
void |
changePassword(String oldPassword,
String newPassword) |
void |
clear() |
protected org.springframework.security.oauth2.client.token.grant.password.ResourceOwnerPasswordAccessTokenProvider |
createResourceOwnerPasswordAccessTokenProvider() |
protected org.springframework.security.oauth2.common.OAuth2AccessToken |
createToken() |
String |
getAuthorizationHeader() |
org.springframework.security.oauth2.common.OAuth2AccessToken |
getToken() |
org.cloudfoundry.reactor.TokenProvider |
getTokenProvider() |
void |
init(CloudCredentials credentials) |
protected org.springframework.security.oauth2.common.OAuth2AccessToken |
refreshToken() |
protected org.springframework.security.oauth2.common.OAuth2AccessToken token
protected CloudCredentials credentials
public OAuthClient(URL authorizationUrl, org.springframework.web.client.RestTemplate restTemplate)
public void init(CloudCredentials credentials)
public void clear()
public org.springframework.security.oauth2.common.OAuth2AccessToken getToken()
public String getAuthorizationHeader()
protected org.springframework.security.oauth2.common.OAuth2AccessToken createToken()
protected org.springframework.security.oauth2.common.OAuth2AccessToken refreshToken()
public org.cloudfoundry.reactor.TokenProvider getTokenProvider()
protected org.springframework.security.oauth2.client.token.grant.password.ResourceOwnerPasswordAccessTokenProvider createResourceOwnerPasswordAccessTokenProvider()
Copyright © 2020 SAP SE. All rights reserved.