Package com.sap.cloud.security.config
Class ClientCredentials
java.lang.Object
com.sap.cloud.security.config.ClientCredentials
- All Implemented Interfaces:
ClientIdentity,Serializable
- See Also:
-
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, getKey, isCertificateBased
-
Constructor Details
-
ClientCredentials
Specifies the OAuth 2.0 client.- Parameters:
clientId- - the ID of the OAuth 2.0 client requesting the token.clientSecret- - the secret of the OAuth 2.0 client requesting the token.
-
-
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
public int hashCode() -
toString
-