Package com.sap.cloud.security.config
Class ClientCredentials
- java.lang.Object
-
- com.sap.cloud.security.config.ClientCredentials
-
- All Implemented Interfaces:
ClientIdentity,Serializable
public class ClientCredentials extends Object implements ClientIdentity, Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ClientCredentials(String clientId, String clientSecret)Specifies the OAuth 2.0 client.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetId()Client id of identity service instance.StringgetSecret()Client secret of identity service instance.inthashCode()booleanisValid()Returns true, if the mandatory attributes in ClientIdentity class are filled for the specified authentication method i.e X.509 or client secretStringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.sap.cloud.security.config.ClientIdentity
getCertificate, getKey, isCertificateBased
-
-
-
-
Method Detail
-
getSecret
public String getSecret()
Description copied from interface:ClientIdentityClient secret of identity service instance.- Specified by:
getSecretin interfaceClientIdentity- Returns:
- client secret
-
getId
public String getId()
Description copied from interface:ClientIdentityClient id of identity service instance.- Specified by:
getIdin interfaceClientIdentity- Returns:
- client identifier
-
isValid
public boolean isValid()
Description copied from interface:ClientIdentityReturns true, if the mandatory attributes in ClientIdentity class are filled for the specified authentication method i.e X.509 or client secret- Specified by:
isValidin interfaceClientIdentity- Returns:
- the boolean
-
-