Skip navigation links

Oracle Fusion Middleware Java API Reference for the Oracle Access Management OAuth Service
11g Release 2 Patch Set 3 (11.1.2.3)

E59498-01


oracle.security.idaas.oauth.sdk
Interface OAuthClient

All Known Implementing Classes:
JerseyClient, OAuthRestClient

public interface OAuthClient

Client interface to the OAuth server.

It defines 3 main methods:

The createToken() method is using a request/response pair. For any class extending OAuthTokenRequest:



Method Summary

 OAuthTokenResponse createToken(OAuthTokenRequest request)
          Returns a formated response including the token information or an error.
 RevocationResponse terminateToken(RevocationRequest request)
          Terminates a Token and returns the result.
 AccessTokenValidationResponse validateToken(AccessTokenValidationRequest request)
          Returns a formated response including the token validation or an error.

 

Method Detail

createToken

OAuthTokenResponse createToken(OAuthTokenRequest request)
                               throws OAuthSdkException
Returns a formated response including the token information or an error.
Parameters:
request - containing the header and data information
Returns:
the result of the call containing at least and access_token
Throws:
OAuthSdkException - in case of failure

validateToken

AccessTokenValidationResponse validateToken(AccessTokenValidationRequest request)
                                            throws OAuthSdkException
Returns a formated response including the token validation or an error.
Parameters:
request - containing the header and data information
Returns:
the result of the token validation
Throws:
OAuthSdkException - in case of failure

terminateToken

RevocationResponse terminateToken(RevocationRequest request)
                                  throws OAuthSdkException
Terminates a Token and returns the result.
Parameters:
request - contains the revocation token information
Returns:
the response
Throws:
OAuthSdkException - in case of failure

Skip navigation links

Copyright (c) 2014, 2015,
Oracle and/or its affiliates. All Rights Reserved.