org.cloudfoundry.client.lib.oauth2
Class OauthClient
java.lang.Object
org.cloudfoundry.client.lib.oauth2.OauthClient
public class OauthClient
- extends Object
Client that can handle authentication against a UAA instance
- Author:
- Dave Syer, Thomas Risberg
Constructor Summary |
OauthClient(URL authorizationUrl,
org.springframework.web.client.RestTemplate restTemplate)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OauthClient
public OauthClient(URL authorizationUrl,
org.springframework.web.client.RestTemplate restTemplate)
getToken
public org.springframework.security.oauth2.common.OAuth2AccessToken getToken(String username,
String password,
String clientId,
String clientSecret)
refreshToken
public org.springframework.security.oauth2.common.OAuth2AccessToken refreshToken(org.springframework.security.oauth2.common.OAuth2AccessToken currentToken,
String username,
String password,
String clientId,
String clientSecret)
changePassword
public void changePassword(org.springframework.security.oauth2.common.OAuth2AccessToken token,
String oldPassword,
String newPassword)
createResourceOwnerPasswordAccessTokenProvider
protected org.springframework.security.oauth2.client.token.grant.password.ResourceOwnerPasswordAccessTokenProvider createResourceOwnerPasswordAccessTokenProvider()
Copyright © 2013. All rights reserved.