Package com.sap.cloud.security.config
Interface ClientIdentity
-
- All Known Implementing Classes:
ClientCertificate
,ClientCredentials
public interface ClientIdentity
Represents xsuaa client identity
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default String
getCertificate()
PEM encoded certificate chain.String
getId()
Client id of identity service instance.default String
getKey()
PEM encoded private key the certificate is signed with.default String
getSecret()
Client secret of identity service instance.static boolean
hasValue(String value)
default boolean
isCertificateBased()
Returns true if ClientIdentity is certificate based.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
-
-
-
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)
-
-