Package org.apache.oltu.oauth2.client
Class OAuthClient
- java.lang.Object
-
- org.apache.oltu.oauth2.client.OAuthClient
-
public class OAuthClient extends java.lang.Object
OAuth Client - exposes a high-level API for Client Applications
-
-
Constructor Summary
Constructors Constructor Description OAuthClient(HttpClient oauthClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OAuthJSONAccessTokenResponse
accessToken(OAuthClientRequest request)
<T extends OAuthAccessTokenResponse>
TaccessToken(OAuthClientRequest request, java.lang.Class<T> responseClass)
OAuthJSONAccessTokenResponse
accessToken(OAuthClientRequest request, java.lang.String requestMethod)
<T extends OAuthAccessTokenResponse>
TaccessToken(OAuthClientRequest request, java.lang.String requestMethod, java.lang.Class<T> responseClass)
<T extends OAuthClientResponse>
Tresource(OAuthClientRequest request, java.lang.String requestMethod, java.lang.Class<T> responseClass)
void
shutdown()
-
-
-
Constructor Detail
-
OAuthClient
public OAuthClient(HttpClient oauthClient)
-
-
Method Detail
-
accessToken
public <T extends OAuthAccessTokenResponse> T accessToken(OAuthClientRequest request, java.lang.Class<T> responseClass) throws OAuthSystemException, OAuthProblemException
-
accessToken
public <T extends OAuthAccessTokenResponse> T accessToken(OAuthClientRequest request, java.lang.String requestMethod, java.lang.Class<T> responseClass) throws OAuthSystemException, OAuthProblemException
-
accessToken
public OAuthJSONAccessTokenResponse accessToken(OAuthClientRequest request) throws OAuthSystemException, OAuthProblemException
-
accessToken
public OAuthJSONAccessTokenResponse accessToken(OAuthClientRequest request, java.lang.String requestMethod) throws OAuthSystemException, OAuthProblemException
-
resource
public <T extends OAuthClientResponse> T resource(OAuthClientRequest request, java.lang.String requestMethod, java.lang.Class<T> responseClass) throws OAuthSystemException, OAuthProblemException
-
shutdown
public void shutdown()
-
-