public class OAuthClient extends Object
| Modifier and Type | Field and Description |
|---|---|
protected HttpClient |
httpClient |
| Constructor and Description |
|---|
OAuthClient(HttpClient oauthClient) |
| Modifier and Type | Method and Description |
|---|---|
OAuthJSONAccessTokenResponse |
accessToken(OAuthClientRequest request) |
<T extends OAuthAccessTokenResponse> |
accessToken(OAuthClientRequest request,
Class<T> responseClass) |
OAuthJSONAccessTokenResponse |
accessToken(OAuthClientRequest request,
String requestMethod) |
<T extends OAuthAccessTokenResponse> |
accessToken(OAuthClientRequest request,
String requestMethod,
Class<T> responseClass) |
<T extends OAuthClientResponse> |
resource(OAuthClientRequest request,
String requestMethod,
Class<T> responseClass) |
void |
shutdown() |
protected HttpClient httpClient
public OAuthClient(HttpClient oauthClient)
public <T extends OAuthAccessTokenResponse> T accessToken(OAuthClientRequest request, Class<T> responseClass) throws org.apache.oltu.oauth2.common.exception.OAuthSystemException, org.apache.oltu.oauth2.common.exception.OAuthProblemException
org.apache.oltu.oauth2.common.exception.OAuthSystemExceptionorg.apache.oltu.oauth2.common.exception.OAuthProblemExceptionpublic <T extends OAuthAccessTokenResponse> T accessToken(OAuthClientRequest request, String requestMethod, Class<T> responseClass) throws org.apache.oltu.oauth2.common.exception.OAuthSystemException, org.apache.oltu.oauth2.common.exception.OAuthProblemException
org.apache.oltu.oauth2.common.exception.OAuthSystemExceptionorg.apache.oltu.oauth2.common.exception.OAuthProblemExceptionpublic OAuthJSONAccessTokenResponse accessToken(OAuthClientRequest request) throws org.apache.oltu.oauth2.common.exception.OAuthSystemException, org.apache.oltu.oauth2.common.exception.OAuthProblemException
org.apache.oltu.oauth2.common.exception.OAuthSystemExceptionorg.apache.oltu.oauth2.common.exception.OAuthProblemExceptionpublic OAuthJSONAccessTokenResponse accessToken(OAuthClientRequest request, String requestMethod) throws org.apache.oltu.oauth2.common.exception.OAuthSystemException, org.apache.oltu.oauth2.common.exception.OAuthProblemException
org.apache.oltu.oauth2.common.exception.OAuthSystemExceptionorg.apache.oltu.oauth2.common.exception.OAuthProblemExceptionpublic <T extends OAuthClientResponse> T resource(OAuthClientRequest request, String requestMethod, Class<T> responseClass) throws org.apache.oltu.oauth2.common.exception.OAuthSystemException, org.apache.oltu.oauth2.common.exception.OAuthProblemException
org.apache.oltu.oauth2.common.exception.OAuthSystemExceptionorg.apache.oltu.oauth2.common.exception.OAuthProblemExceptionpublic void shutdown()
Copyright © 2010–2016 The Apache Software Foundation. All rights reserved.