Class ClientIdentifier
- java.lang.Object
-
- org.glassfish.jersey.client.oauth2.ClientIdentifier
-
public class ClientIdentifier extends 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
- Author:
- Miroslav Fuksa
-
-
Constructor Summary
Constructors Constructor Description ClientIdentifier(String clientId, byte[] clientSecret)Create a new instance initialized with client id and client secret in form of byte array.ClientIdentifier(String clientId, String clientSecret)Create a new instance initialized with client id and client secret in form of String value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetClientId()Get the client id.StringgetClientSecret()Get client secret.byte[]getClientSecretAsByteArray()Get client secret as byte array.
-
-
-
Constructor Detail
-
ClientIdentifier
public ClientIdentifier(String clientId, 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(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 String getClientId()
Get the client id.- Returns:
- Client id.
-
getClientSecret
public 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.
-
-