public class OauthClient extends Object
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() |
String |
getAuthorizationHeader() |
org.springframework.security.oauth2.common.OAuth2AccessToken |
getToken() |
void |
init(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.client.token.grant.password.ResourceOwnerPasswordAccessTokenProvider createResourceOwnerPasswordAccessTokenProvider()
Copyright © 2014. All rights reserved.