|
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.OAuthTokenRequest
oracle.security.idaas.oauth.sdk.request.AccessTokenRequest
public class AccessTokenRequest
Class dedicated to receive the Access Token request parameters. Creating Resource Access Token (AT) (and its Refresh Token (RT))
Constructor Summary
AccessTokenRequest() Initializes a basic Access Token request without any parameters. |
AccessTokenRequest(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. |
AccessTokenRequest(java.lang.String grantType, ClientIdSecretPair clientCredentials, java.lang.String scope) Constructor dedicated to AT5 case: Confidential Client to use Client Secret to acquire a JWT-based Resource Access Token (AT) (which does not require a user identity) |
AccessTokenRequest(java.lang.String grantType, ClientIdSecretPair clientCredentials, java.lang.String assertion, java.lang.String scope) Constructor dedicated to AT4 case: Confidential Client to use Client Secret and User Assertion Token (SAML / JWT based) to acquire a JWT-based Resource Access Token (AT) |
AccessTokenRequest(java.lang.String grantType, ClientIdSecretPair clientCredentials, java.lang.String username, java.lang.String password, java.lang.String scope) Constructor dedicated to AT3 case: Confidential Client to use Client Secret and User Pwd to acquire a JWT-based Resource Access Token (AT) |
AccessTokenRequest(java.lang.String grantType, java.lang.String clientId, java.lang.String clientAssertionType, java.lang.String clientAssertion, java.lang.String scope) Constructor dedicated to AT2 case: Confidential Client to use Client Assertion (SAML / JWT based) to acquire a JWT-based Resource Access Token (AT) (which does not require a user identity) |
AccessTokenRequest(java.lang.String grantType, java.lang.String assertion, java.lang.String clientId, java.lang.String clientAssertionType, java.lang.String clientAssertion, java.lang.String scope) Constructor dedicated to AT1 case: Confidential Client to use Client Assertion (SAML / JWT based) and User Assertion Grant (SAML / JWT based) to acquire a JWT-based Resource Access Token (AT). |
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 |
getPassword() returns the password |
java.lang.String |
getScope() Returns the scope. |
java.lang.String |
getUsername() Returns the username. |
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 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 |
setPassword(java.lang.String password) Updates the password. |
void |
setScope(java.lang.String scope) Update the scope. |
void |
setUsername(java.lang.String username) Update the username |
Methods inherited from class oracle.security.idaas.oauth.sdk.request.OAuthTokenRequest
getGrantType |
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 AccessTokenRequest()
public AccessTokenRequest(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 partpublic AccessTokenRequest(java.lang.String grantType, java.lang.String assertion, java.lang.String clientId, java.lang.String clientAssertionType, java.lang.String clientAssertion, java.lang.String scope) throws java.lang.IllegalArgumentException
grantType
- only accepts OAuthSdkConstants.JWT_GRANT_TYPE
or OAuthSdkConstants.SAML_GRANT_TYPE
assertion
- user assertion, see also UserAssertionTokenRequest
clientId
- client identifierclientAssertionType
- accept only OAuthSdkConstants.SAML_CLIENT_ASSERTION_TYPE
or OAuthSdkConstants.JWT_CLIENT_ASSERTION_TYPE
clientAssertion
- client assertion, see also ClientAssertionTokenRequest
scope
- space separated list of scopesjava.lang.IllegalArgumentException
- when invalid argument is providedpublic AccessTokenRequest(java.lang.String grantType, java.lang.String clientId, java.lang.String clientAssertionType, java.lang.String clientAssertion, java.lang.String scope) throws java.lang.IllegalArgumentException
grantType
- only accepts OAuthSdkConstants.CLIENT_CREDENTIALS_GRANT_TYPE
clientId
- client identifierclientAssertionType
- accept only OAuthSdkConstants.SAML_CLIENT_ASSERTION_TYPE
or OAuthSdkConstants.JWT_CLIENT_ASSERTION_TYPE
clientAssertion
- client assertion, see also ClientAssertionTokenRequest
scope
- space separated list of scopesjava.lang.IllegalArgumentException
- when invalid argument is providedpublic AccessTokenRequest(java.lang.String grantType, ClientIdSecretPair clientCredentials, java.lang.String username, java.lang.String password, java.lang.String scope) throws java.lang.IllegalArgumentException
grantType
- only accepts OAuthSdkConstants.PASSWORD_GRANT_TYPE
clientCredentials
- client informationusername
- user namepassword
- passwordscope
- space separated list of scopesjava.lang.IllegalArgumentException
- when invalid argument is providedpublic AccessTokenRequest(java.lang.String grantType, ClientIdSecretPair clientCredentials, java.lang.String assertion, java.lang.String scope) throws java.lang.IllegalArgumentException
grantType
- only accepts OAuthSdkConstants.JWT_GRANT_TYPE
or OAuthSdkConstants.SAML_GRANT_TYPE
clientCredentials
- client infoassertion
- assertionscope
- space separated list of scopesjava.lang.IllegalArgumentException
- when invalid argument is providedpublic AccessTokenRequest(java.lang.String grantType, ClientIdSecretPair clientCredentials, java.lang.String scope) throws java.lang.IllegalArgumentException
grantType
- only accepts OAuthSdkConstants.CLIENT_CREDENTIALS_GRANT_TYPE
clientCredentials
- client infoscope
- space separated list of scopesjava.lang.IllegalArgumentException
- when invalid argument is providedpublic void setGrantType(java.lang.String grantType)
setGrantType
in class OAuthTokenRequest
grantType
- grant typepublic java.lang.String getAssertion()
public void setAssertion(java.lang.String assertion)
assertion
- assertionpublic 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
- type of client assertionpublic java.lang.String getClientAssertion()
public void setClientAssertion(java.lang.String clientAssertion)
clientAssertion
- assertionpublic boolean isJwtClientAssertion()
public boolean isSamlClientAssertion()
public java.lang.String getScope()
public void setScope(java.lang.String scope)
If the scope is null or empty then scope is set to none.
scope
- space separated list of scopespublic java.lang.String getUsername()
public void setUsername(java.lang.String username)
username
- name of userpublic java.lang.String getPassword()
public void setPassword(java.lang.String password)
password
- passwordpublic ClientIdSecretPair getClientCredentials()
public void setClientCredentials(ClientIdSecretPair clientCredentials) throws java.lang.IllegalArgumentException
clientCredentials
- client informationjava.lang.IllegalArgumentException
- when invalid argument is given
|
Oracle and/or its affiliates. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |