Interface ClientIdentity
- All Known Implementing Classes:
ClientCertificate
,ClientCredentials
public interface ClientIdentity
Represents xsuaa client identity
-
Method Summary
Modifier and TypeMethodDescriptiondefault String
PEM encoded certificate chain.default Certificate[]
getId()
Client id of identity service instance.default String
getKey()
PEM encoded private key the certificate is signed with.default PrivateKey
default String
Client secret of identity service instance.static boolean
default boolean
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 Details
-
getId
-
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
Client secret of identity service instance.- Returns:
- client secret
-
getCertificate
-
getKey
PEM encoded private key the certificate is signed with.- Returns:
- private key
-
getCertificateChain
- Returns:
- Certificate chain array
-
getPrivateKey
- Returns:
- Private key
-
hasValue
-