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

java.lang.Object
  extended by oracle.security.idaas.oauth.sdk.ClientIdSecretPair


public class ClientIdSecretPair
extends java.lang.Object

Encapsulates the client ID and secret management.


Constructor Summary

ClientIdSecretPair(java.lang.String clientId, java.lang.String clientSecret)
          Initiates the client information using the given ID and secret.

  Method Summary

 java.lang.String getClientId()
          Returns the client Id.
 java.lang.String getClientSecret()
          Returns the client secret.
 java.lang.String getCredentials()
          The Based64 formatted credentials corresponding to this client Id and secret.
 void setClientId(java.lang.String clientId)
          Changes the client Id and updates, when appropriated, the new credentials.
 void setClientSecret(java.lang.String clientSecret)
          Changes the client Secret and updates, when appropriated, the new credentials.
 java.lang.String toString()
           

  Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Constructor Detail

ClientIdSecretPair

public ClientIdSecretPair(java.lang.String clientId,
                          java.lang.String clientSecret)
                   throws java.io.UnsupportedEncodingException,
                          java.lang.IllegalArgumentException
Initiates the client information using the given ID and secret. The client Id and the client secret shall not be null or empty.
Parameters:
clientId - client identifier
clientSecret - secret of the client
Throws:
java.io.UnsupportedEncodingException - in case of base 64 encoding failure
java.lang.IllegalArgumentException - when invalid argument is provided

Method Detail

getClientId

public java.lang.String getClientId()
Returns the client Id.
Returns:
id of the client

setClientId

public void setClientId(java.lang.String clientId)
                 throws java.io.UnsupportedEncodingException
Changes the client Id and updates, when appropriated, the new credentials. The client Id shall not be null or empty.
Parameters:
clientId - client identifier
Throws:
java.io.UnsupportedEncodingException - in case of base 64 encoding failure

getClientSecret

public java.lang.String getClientSecret()
Returns the client secret.
Returns:
the secret of the client

setClientSecret

public void setClientSecret(java.lang.String clientSecret)
                     throws java.io.UnsupportedEncodingException
Changes the client Secret and updates, when appropriated, the new credentials. The client secret shall not be null or empty.
Parameters:
clientSecret - secret of the client
Throws:
java.io.UnsupportedEncodingException - in case of base 64 encoding failure

getCredentials

public java.lang.String getCredentials()
The Based64 formatted credentials corresponding to this client Id and secret.
Returns:
the formatted credentials

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Skip navigation links

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