Package com.sap.cloud.security.config
Interface ClientIdentity
-
- All Known Implementing Classes:
ClientCertificate,ClientCredentials
public interface ClientIdentityRepresents xsuaa client identity
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default StringgetCertificate()PEM encoded certificate chain.StringgetId()Client id of identity service instance.default StringgetKey()PEM encoded private key the certificate is signed with.default StringgetSecret()Client secret of identity service instance.static booleanhasValue(String value)default booleanisCertificateBased()Returns true if ClientIdentity is certificate based.default booleanisValid()Returns true, if the mandatory attributes in ClientIdentity class are filled for the specified authentication method i.e X.509 or client secret
-
-
-
Method Detail
-
getId
String getId()
Client id of identity service instance.- Returns:
- client identifier
-
isValid
default boolean isValid()
Returns true, if the mandatory attributes in ClientIdentity class are filled for the specified authentication method i.e X.509 or client secret- Returns:
- the boolean
-
isCertificateBased
default boolean isCertificateBased()
Returns true if ClientIdentity is certificate based.- Returns:
- the boolean
-
getSecret
@Nullable default String getSecret()
Client secret of identity service instance.- Returns:
- client secret
-
getCertificate
@Nullable default String getCertificate()
PEM encoded certificate chain.- Returns:
- certificate chain
-
getKey
@Nullable default String getKey()
PEM encoded private key the certificate is signed with.- Returns:
- private key
-
hasValue
static boolean hasValue(String value)
-
-