Class ClientIdentifier


  • public class ClientIdentifier
    extends java.lang.Object
    Client Identifier that contains information about client id and client secret issues by a Service Provider for application. The class stores client secret as byte array to improve security.
    Since:
    2.3
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String clientId  
      private byte[] clientSecret  
    • Constructor Summary

      Constructors 
      Constructor Description
      ClientIdentifier​(java.lang.String clientId, byte[] clientSecret)
      Create a new instance initialized with client id and client secret in form of byte array.
      ClientIdentifier​(java.lang.String clientId, java.lang.String clientSecret)
      Create a new instance initialized with client id and client secret in form of String value.
    • Field Detail

      • clientId

        private final java.lang.String clientId
      • clientSecret

        private final byte[] clientSecret
    • Constructor Detail

      • ClientIdentifier

        public ClientIdentifier​(java.lang.String clientId,
                                java.lang.String clientSecret)
        Create a new instance initialized with client id and client secret in form of String value.
        Parameters:
        clientId - Client id.
        clientSecret - Client secret id.
      • ClientIdentifier

        public ClientIdentifier​(java.lang.String clientId,
                                byte[] clientSecret)
        Create a new instance initialized with client id and client secret in form of byte array.
        Parameters:
        clientId - Client id.
        clientSecret - Client secret id as a byte array value in the default encoding.
    • Method Detail

      • getClientId

        public java.lang.String getClientId()
        Get the client id.
        Returns:
        Client id.
      • getClientSecret

        public java.lang.String getClientSecret()
        Get client secret.
        Returns:
        Client secret as a String.
      • getClientSecretAsByteArray

        public byte[] getClientSecretAsByteArray()
        Get client secret as byte array.
        Returns:
        Client secret as a byte array.