Class ClientCredentials
java.lang.Object
com.sap.cloud.security.config.ClientCredentials
-
Constructor Summary
ConstructorsConstructorDescriptionClientCredentials(String clientId, String clientSecret) Specifies the OAuth 2.0 client. -
Method Summary
Modifier and TypeMethodDescriptionbooleangetId()Client id of identity service instance.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 secrettoString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.sap.cloud.security.config.ClientIdentity
getCertificate, getCertificateChain, getKey, getPrivateKey, isCertificateBased
-
Constructor Details
-
ClientCredentials
-
-
Method Details
-
getSecret
Description copied from interface:ClientIdentityClient secret of identity service instance.- Specified by:
getSecretin interfaceClientIdentity- Returns:
- client secret
-
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
-
equals
-
hashCode
-
toString
-