|
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.RevocationRequest
public class RevocationRequest
Class dedicated to terminate a token.
There are 2 ways to terminate a token depending on the client information the user gets.
RevocationRequest(java.lang.String,java.lang.String,oracle.security.idaas.oauth.sdk.ClientIdSecretPair)
RevocationRequest(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
.
Constructor Summary
RevocationRequest() Initializes a basic Access Token request without any parameters. |
RevocationRequest(java.util.Map<java.lang.String,java.lang.String> header, java.util.Map<java.lang.String,java.lang.String> query) Initializes the Access Token request using the given parameters. |
RevocationRequest(java.lang.String grantType, java.lang.String assertion, ClientIdSecretPair clientCredentials) Constructor dedicated to request the termination of a token using a client credentials. |
RevocationRequest(java.lang.String grantType, java.lang.String assertion, java.lang.String clientAssertionType, java.lang.String clientAssertion) Constructor dedicated to request the termination of a token using a client assertion (value/type pair). |
java.lang.String |
getAssertion() Returns the token value to be terminated. |
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 |
getGrantType() Returns the grant_type |
boolean |
isJwtClientAssertion() Return true if the client assertion is a JWT one. |
boolean |
isSamlClientAssertion() Return true if the client assertion is a SAML one. |
void |
setAssertion(java.lang.String assertion) Updates the token value to be terminated. |
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 |
setGrantType(java.lang.String grantType) Updates the grant_type. |
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 |
Constructor Detail
public RevocationRequest()
public RevocationRequest(java.util.Map<java.lang.String,java.lang.String> header, java.util.Map<java.lang.String,java.lang.String> query)
header
- list of name/value parameters for request headerquery
- list of name/value parameters to fit in the query part of the requestpublic RevocationRequest(java.lang.String grantType, java.lang.String assertion, java.lang.String clientAssertionType, java.lang.String clientAssertion) throws java.lang.IllegalArgumentException
grantType
- 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_JWT
assertion
- token value to be terminatedclientAssertionType
- accept only OAuthSdkConstants.SAML_CLIENT_ASSERTION_TYPE
or OAuthSdkConstants.JWT_CLIENT_ASSERTION_TYPE
clientAssertion
- client assertion allowed to terminate the token, see also ClientAssertionTokenRequest
java.lang.IllegalArgumentException
- when invalid argument is providedpublic RevocationRequest(java.lang.String grantType, java.lang.String assertion, ClientIdSecretPair clientCredentials) throws java.lang.IllegalArgumentException
grantType
- 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_JWT
assertion
- token value to be terminatedclientCredentials
- client credentials allowed to terminate the tokenjava.lang.IllegalArgumentException
- when invalid parameterpublic java.lang.String getGrantType()
public void setGrantType(java.lang.String grantType)
grantType
- accept only 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
public java.lang.String getAssertion()
public void setAssertion(java.lang.String assertion)
assertion
- token valuepublic java.lang.String getClientAssertionType()
public void setClientAssertionType(java.lang.String clientAssertionType)
clientAssertionType
- type of the client assertionpublic java.lang.String getClientAssertion()
public void setClientAssertion(java.lang.String clientAssertion)
clientAssertion
- string value of the client assertionpublic boolean isJwtClientAssertion()
public boolean isSamlClientAssertion()
public ClientIdSecretPair getClientCredentials()
public void setClientCredentials(ClientIdSecretPair clientCredentials) throws java.lang.IllegalArgumentException
clientCredentials
- client informationjava.lang.IllegalArgumentException
- when null parameter
|
Oracle and/or its affiliates. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |