|
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.request.OAuthRestRequest
oracle.security.idaas.oauth.sdk.request.AccessTokenValidationRequest
public class AccessTokenValidationRequest
Class dedicated to the Token Validation request.
There are 2 ways to validate a token depending on the client information the user gets.
AccessTokenValidationRequest(oracle.security.idaas.oauth.sdk.ClientIdSecretPair,java.lang.String,java.lang.String,java.lang.String,java.lang.String)AccessTokenValidationRequest(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String)The grant type to be used to build such request is always OAuthSdkConstants.ORACLE_IDM_GRANT_TYPE_USER_TOKEN_JWT or OAuthSdkConstants.ORACLE_IDM_GRANT_TYPE_RESOURCE_ACCESS_TOKEN_JWT or OAuthSdkConstants.ORACLE_IDM_GRANT_TYPE_CLIENT_TOKEN_JWT.
Field Summary
static java.lang.String |
ORACLE_TOKEN_ACTION_QUERY_PARAM_NAMEoracle_token_action |
AccessTokenValidationRequest()Initializes the OAuth Token Validation request without any parameters. |
AccessTokenValidationRequest(ClientIdSecretPair clientCredentials, java.lang.String grantType, java.lang.String assertion, java.lang.String scope, java.lang.String attrsRetrieval)Initializes the OAuth Token Validation request using Client Secret (e.g. |
AccessTokenValidationRequest(java.util.Map<java.lang.String,java.lang.String> header, java.util.Map<java.lang.String,java.lang.String> query)Initializes the OAuth Token Validation request using the given parameters. |
AccessTokenValidationRequest(java.lang.String clientId, java.lang.String clientAssertionType, java.lang.String clientAssertion, java.lang.String grantType, java.lang.String assertion, java.lang.String scope, java.lang.String attrsRetrieval)Initializes the OAuth Token Validation request using Client Assertion to validate a Token. |
java.lang.String |
getAssertion()Returns the assertion |
java.lang.String |
getClientAssertion()Returns the client_assertion |
java.lang.String |
getClientAssertionType()Returns the client_assertion_type |
ClientIdSecretPair |
getClientCredentials()Returns the client id and secret. |
java.lang.String |
getClientId()Returns the client_id |
java.lang.String |
getGrantType()Returns the grant_type |
java.lang.String |
getOracleTokenAttrsRetrieval()Returns the oracle_token_attrs_retrieval. |
java.lang.String |
getScope()Returns the scope. |
boolean |
isJwtClientAssertion()Returns true if the client assertion is a JWT one. |
boolean |
isSamlClientAssertion()Returns true if the client assertion is a SAML one. |
void |
setAssertion(java.lang.String assertion)Updates the assertion |
void |
setClientAssertion(java.lang.String clientAssertion)Updates the client_assertion |
void |
setClientAssertionType(java.lang.String clientAssertionType)Updates the client_assertion_type. |
void |
setClientCredentials(ClientIdSecretPair clientCredentials)Updates the client id and secret |
void |
setClientId(java.lang.String clientId)Update the client_id |
void |
setGrantType(java.lang.String grantType)Updates the grant_type. |
void |
setOracleTokenAttrsRetrieval(java.lang.String atrsRetrieval)Update the oracle_token_attrs_retrieval. |
void |
setScope(java.lang.String scope)Update the scope. |
Methods inherited from class oracle.security.idaas.oauth.sdk.request.OAuthRestRequest
addHeader, addQuery, clearAll, clearHeader, clearQuery, getHeader, getHeader, getQuery, getQuery, getQueryMap, isNullOrEmpty, setHeader, setQuery |
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail
public static final java.lang.String ORACLE_TOKEN_ACTION_QUERY_PARAM_NAME
public AccessTokenValidationRequest()
public AccessTokenValidationRequest(java.util.Map<java.lang.String,java.lang.String> header,
java.util.Map<java.lang.String,java.lang.String> query)
header - set of parameters to fit into the request headerquery - set of parameters to fit into the data part
public AccessTokenValidationRequest(ClientIdSecretPair clientCredentials,
java.lang.String grantType,
java.lang.String assertion,
java.lang.String scope,
java.lang.String attrsRetrieval)
clientCredentials - client informationgrantType - only accepts OAuthSdkConstants.ORACLE_IDM_GRANT_TYPE_USER_TOKEN_JWT or OAuthSdkConstants.ORACLE_IDM_GRANT_TYPE_RESOURCE_ACCESS_TOKEN_JWT or OAuthSdkConstants.ORACLE_IDM_GRANT_TYPE_CLIENT_TOKEN_JWTassertion - assertionscope - space separated list of scopesattrsRetrieval - attributes to return
public AccessTokenValidationRequest(java.lang.String clientId,
java.lang.String clientAssertionType,
java.lang.String clientAssertion,
java.lang.String grantType,
java.lang.String assertion,
java.lang.String scope,
java.lang.String attrsRetrieval)
clientId - client identifierclientAssertionType - accept only OAuthSdkConstants.SAML_CLIENT_ASSERTION_TYPE or OAuthSdkConstants.JWT_CLIENT_ASSERTION_TYPEclientAssertion - client assertion, see also ClientAssertionTokenRequestgrantType - only accepts OAuthSdkConstants.ORACLE_IDM_GRANT_TYPE_USER_TOKEN_JWT or OAuthSdkConstants.ORACLE_IDM_GRANT_TYPE_RESOURCE_ACCESS_TOKEN_JWT or OAuthSdkConstants.ORACLE_IDM_GRANT_TYPE_CLIENT_TOKEN_JWTassertion - stringscope - space separated list of scopesattrsRetrieval - list of attributespublic ClientIdSecretPair getClientCredentials()
public void setClientCredentials(ClientIdSecretPair clientCredentials)
throws java.lang.IllegalArgumentException
clientCredentials - client informationjava.lang.IllegalArgumentException - when invalid argument is providedpublic java.lang.String getGrantType()
public void setGrantType(java.lang.String grantType)
grantType - grant typepublic java.lang.String getAssertion()
public void setAssertion(java.lang.String assertion)
assertion - assertionpublic java.lang.String getScope()
public void setScope(java.lang.String scope)
scope - space separated list of scopespublic java.lang.String getOracleTokenAttrsRetrieval()
public void setOracleTokenAttrsRetrieval(java.lang.String atrsRetrieval)
atrsRetrieval - attributes to returnpublic java.lang.String getClientId()
public void setClientId(java.lang.String clientId)
clientId - client identifierpublic java.lang.String getClientAssertionType()
public void setClientAssertionType(java.lang.String clientAssertionType)
clientAssertionType - assertion typepublic java.lang.String getClientAssertion()
public void setClientAssertion(java.lang.String clientAssertion)
clientAssertion - assertionpublic boolean isJwtClientAssertion()
public boolean isSamlClientAssertion()
|
Oracle and/or its affiliates. All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||