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.request
Class ClientAssertionTokenRequest

java.lang.Object
  extended by oracle.security.idaas.oauth.sdk.request.OAuthRestRequest
      extended by oracle.security.idaas.oauth.sdk.request.OAuthTokenRequest
          extended by oracle.security.idaas.oauth.sdk.request.ClientAssertionTokenRequest


public class ClientAssertionTokenRequest
extends OAuthTokenRequest

Class dedicated to receive the Client Assertion Token request parameters.


Constructor Summary

ClientAssertionTokenRequest()
          Initializes a basic Client Assertion Token request without any parameters.
ClientAssertionTokenRequest(ClientIdSecretPair clientCredentials)
          [CT.1] Confidential Client to use Client Secret to acquire Client Assertion Token (CT)
ClientAssertionTokenRequest(java.util.Map<java.lang.String,java.lang.String> header, java.util.Map<java.lang.String,java.lang.String> query)
          Initializes the Client Assertion Token request using the given parameters.
ClientAssertionTokenRequest(java.lang.String clientId, java.lang.String clientAssertionType, java.lang.String clientAssertion)
          [CT.2] Confidential Client to use client id and assertion.

  Method Summary

 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
 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 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

  Methods inherited from class oracle.security.idaas.oauth.sdk.request.OAuthTokenRequest

getGrantType, setGrantType

  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

ClientAssertionTokenRequest

public ClientAssertionTokenRequest()
Initializes a basic Client Assertion Token request without any parameters.

ClientAssertionTokenRequest

public ClientAssertionTokenRequest(java.util.Map<java.lang.String,java.lang.String> header,
                                   java.util.Map<java.lang.String,java.lang.String> query)
Initializes the Client Assertion Token request using the given parameters.
Parameters:
header - name value pairs for request header
query - name value pairs for request query

ClientAssertionTokenRequest

public ClientAssertionTokenRequest(ClientIdSecretPair clientCredentials)
                            throws java.io.UnsupportedEncodingException,
                                   java.lang.IllegalArgumentException
[CT.1] Confidential Client to use Client Secret to acquire Client Assertion Token (CT)
Parameters:
clientCredentials - client information
Throws:
java.io.UnsupportedEncodingException - when encoding fails
java.lang.IllegalArgumentException - when invalid parameter

ClientAssertionTokenRequest

public ClientAssertionTokenRequest(java.lang.String clientId,
                                   java.lang.String clientAssertionType,
                                   java.lang.String clientAssertion)
                            throws java.lang.IllegalArgumentException
[CT.2] Confidential Client to use client id and assertion.
Parameters:
clientId - client identifier
clientAssertionType - accept only OAuthSdkConstants.SAML_CLIENT_ASSERTION_TYPE or OAuthSdkConstants.JWT_CLIENT_ASSERTION_TYPE
clientAssertion - client assertion, see also ClientAssertionTokenRequest
Throws:
java.lang.IllegalArgumentException - when invalid parameter

Method Detail

getClientId

public java.lang.String getClientId()
Returns the client_id
Returns:
client_id

setClientId

public void setClientId(java.lang.String clientId)
Update the client_id
Parameters:
clientId - client identifier

getClientCredentials

public ClientIdSecretPair getClientCredentials()
Returns the client Id and =secret.
Returns:
client id and secret

setClientCredentials

public void setClientCredentials(ClientIdSecretPair clientCredentials)
                          throws java.lang.IllegalArgumentException
Updates the client id and secret.
Parameters:
clientCredentials - client information
Throws:
java.lang.IllegalArgumentException - when invalid argument is provided

getClientAssertionType

public java.lang.String getClientAssertionType()
Returns the Client Assertion type.
Returns:
client assertion type

setClientAssertionType

public void setClientAssertionType(java.lang.String clientAssertionType)
Updates the Client Assertion Type. Accepts only:
Parameters:
clientAssertionType - accept only OAuthSdkConstants.SAML_CLIENT_ASSERTION_TYPE or OAuthSdkConstants.JWT_CLIENT_ASSERTION_TYPE

getClientAssertion

public java.lang.String getClientAssertion()
returns the Client Assertion.
Returns:
client assertion

setClientAssertion

public void setClientAssertion(java.lang.String clientAssertion)
Updates the Client assertion.
Parameters:
clientAssertion - client assertion

isJwtClientAssertion

public boolean isJwtClientAssertion()
Returns true if the client assertion is a JWT one.
Returns:
true for JWT

isSamlClientAssertion

public boolean isSamlClientAssertion()
Returns true if the client assertion is a SAML one.
Returns:
true for SAML

Skip navigation links

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