org.apache.oltu.oauth2.client
Class OAuthClient

java.lang.Object
  extended by org.apache.oltu.oauth2.client.OAuthClient
Direct Known Subclasses:
OAuthRegistrationClient

public class OAuthClient
extends Object

OAuth Client - exposes a high-level API for Client Applications


Field Summary
protected  HttpClient httpClient
           
 
Constructor Summary
OAuthClient(HttpClient oauthClient)
           
 
Method Summary
 OAuthJSONAccessTokenResponse accessToken(OAuthClientRequest request)
           
<T extends OAuthAccessTokenResponse>
T
accessToken(OAuthClientRequest request, Class<T> responseClass)
           
 OAuthJSONAccessTokenResponse accessToken(OAuthClientRequest request, String requestMethod)
           
<T extends OAuthAccessTokenResponse>
T
accessToken(OAuthClientRequest request, String requestMethod, Class<T> responseClass)
           
<T extends OAuthClientResponse>
T
resource(OAuthClientRequest request, String requestMethod, Class<T> responseClass)
           
 void shutdown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

httpClient

protected HttpClient httpClient
Constructor Detail

OAuthClient

public OAuthClient(HttpClient oauthClient)
Method Detail

accessToken

public <T extends OAuthAccessTokenResponse> T accessToken(OAuthClientRequest request,
                                                          Class<T> responseClass)
                                               throws OAuthSystemException,
                                                      OAuthProblemException
Throws:
OAuthSystemException
OAuthProblemException

accessToken

public <T extends OAuthAccessTokenResponse> T accessToken(OAuthClientRequest request,
                                                          String requestMethod,
                                                          Class<T> responseClass)
                                               throws OAuthSystemException,
                                                      OAuthProblemException
Throws:
OAuthSystemException
OAuthProblemException

accessToken

public OAuthJSONAccessTokenResponse accessToken(OAuthClientRequest request)
                                         throws OAuthSystemException,
                                                OAuthProblemException
Throws:
OAuthSystemException
OAuthProblemException

accessToken

public OAuthJSONAccessTokenResponse accessToken(OAuthClientRequest request,
                                                String requestMethod)
                                         throws OAuthSystemException,
                                                OAuthProblemException
Throws:
OAuthSystemException
OAuthProblemException

resource

public <T extends OAuthClientResponse> T resource(OAuthClientRequest request,
                                                  String requestMethod,
                                                  Class<T> responseClass)
                                       throws OAuthSystemException,
                                              OAuthProblemException
Throws:
OAuthSystemException
OAuthProblemException

shutdown

public void shutdown()


Copyright © 2010–2014 The Apache Software Foundation. All rights reserved.