Package org.apache.oltu.oauth2.client
Class OAuthClient
java.lang.Object
org.apache.oltu.oauth2.client.OAuthClient
OAuth Client - exposes a high-level API for Client Applications
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccessToken(OAuthClientRequest request) <T extends OAuthAccessTokenResponse>
TaccessToken(OAuthClientRequest request, Class<T> responseClass) 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) voidshutdown()
-
Constructor Details
-
OAuthClient
-
-
Method Details
-
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()
-