org.apache.oltu.oauth2.client
Class OAuthClient
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
httpClient
protected HttpClient httpClient
OAuthClient
public OAuthClient(HttpClient oauthClient)
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.