org.cloudfoundry.client.lib.oauth2
Class OauthClient

java.lang.Object
  extended by 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)
           
 
Method Summary
 void changePassword(org.springframework.security.oauth2.common.OAuth2AccessToken token, String oldPassword, String newPassword)
           
protected  org.springframework.security.oauth2.client.token.grant.password.ResourceOwnerPasswordAccessTokenProvider createResourceOwnerPasswordAccessTokenProvider()
           
 org.springframework.security.oauth2.common.OAuth2AccessToken getToken(String username, String password, String clientId, String clientSecret)
           
 org.springframework.security.oauth2.common.OAuth2AccessToken refreshToken(org.springframework.security.oauth2.common.OAuth2AccessToken currentToken, String username, String password, String clientId, String clientSecret)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OauthClient

public OauthClient(URL authorizationUrl,
                   org.springframework.web.client.RestTemplate restTemplate)
Method Detail

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.