|
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 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
oracle.security.idaas.oauth.sdk.jersey.JerseyClient
public class JerseyClient
Implements the OAuthClient interface using a Jersey Client.
Constructor Summary
JerseyClient(java.io.InputStream inputStream)Constructor reading the configuration from the given InputStream. |
JerseyClient(java.util.Properties properties)Constructor using a Java Properties format for client configuration. |
JerseyClient(java.net.URL config)Constructor using URL location of the Properties file containing client configuration. |
OAuthTokenResponse |
createToken(OAuthTokenRequest request)Returns a formated response including the token information or an error. |
java.lang.String |
getProperty(java.lang.String key)Returns the value of given key. |
void |
setProperty(java.lang.String key, java.lang.String value)Changes the value of corresponding key. |
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. |
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail
public JerseyClient(java.util.Properties properties)
properties - configuration
public JerseyClient(java.net.URL config)
throws java.io.IOException
oauthServiceProfileUrl=http://hostname:portNumber/ms_oauth/oauth2/endpoints/... useProxy=true|false proxyHost=hostname proxyPort=portNumber outputCurlCde=true|false
config - configuration locationjava.io.IOException - if an I/O error occurs.
public JerseyClient(java.io.InputStream inputStream)
throws java.io.IOException
oauthServiceProfileUrl=http://hostname:portNumber/ms_oauth/oauth2/endpoints/... useProxy=true|false proxyHost=hostname proxyPort=portNumber outputCurlCde=true|false
inputStream - Configuration informationjava.io.IOException - if an I/O error occurs.
public void setProperty(java.lang.String key,
java.lang.String value)
key - name of attributevalue - valuepublic java.lang.String getProperty(java.lang.String key)
key - name
public OAuthTokenResponse createToken(OAuthTokenRequest request)
throws OAuthSdkException
OAuthClientcreateToken in interface OAuthClientrequest - containing the header and data informationOAuthSdkException - in case of failure
public AccessTokenValidationResponse validateToken(AccessTokenValidationRequest request)
throws OAuthSdkException
OAuthClientvalidateToken in interface OAuthClientrequest - containing the header and data informationOAuthSdkException - in case of failure
public RevocationResponse terminateToken(RevocationRequest request)
throws OAuthSdkException
OAuthClientterminateToken in interface OAuthClientrequest - contains the revocation token informationOAuthSdkException - in case of failure
|
Oracle and/or its affiliates. All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||