Package org.apache.oltu.oauth2.client
Class OAuthClient
- java.lang.Object
-
- org.apache.oltu.oauth2.client.OAuthClient
-
public class OAuthClient extends 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, Class<T> responseClass)
OAuthJSONAccessTokenResponse
accessToken(OAuthClientRequest request, String requestMethod)
<T extends OAuthAccessTokenResponse>
TaccessToken(OAuthClientRequest request, String requestMethod, Class<T> responseClass)
<T extends OAuthClientResponse>
Tresource(OAuthClientRequest request, String requestMethod, Class<T> responseClass)
void
shutdown()
-
-
-
Constructor Detail
-
OAuthClient
public OAuthClient(HttpClient oauthClient)
-
-
Method Detail
-
accessToken
public <T extends OAuthAccessTokenResponse> T accessToken(OAuthClientRequest request, Class<T> responseClass) throws OAuthSystemException, OAuthProblemException
-
accessToken
public <T extends OAuthAccessTokenResponse> T accessToken(OAuthClientRequest request, String requestMethod, Class<T> responseClass) throws OAuthSystemException, OAuthProblemException
-
accessToken
public OAuthJSONAccessTokenResponse accessToken(OAuthClientRequest request) throws OAuthSystemException, OAuthProblemException
-
accessToken
public OAuthJSONAccessTokenResponse accessToken(OAuthClientRequest request, String requestMethod) throws OAuthSystemException, OAuthProblemException
-
resource
public <T extends OAuthClientResponse> T resource(OAuthClientRequest request, String requestMethod, Class<T> responseClass) throws OAuthSystemException, OAuthProblemException
-
shutdown
public void shutdown()
-
-