Interface ClientIdentity

All Known Implementing Classes:
ClientCertificate, ClientCredentials

public interface ClientIdentity
Represents xsuaa client identity
  • Method Summary

    Modifier and Type
    Method
    Description
    default String
    PEM encoded certificate chain.
    default Certificate[]
     
    Client id of identity service instance.
    default String
    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
    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

      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
    • getCertificateChain

      @Nullable default Certificate[] getCertificateChain()
      Returns:
      Certificate chain array
    • getPrivateKey

      @Nullable default PrivateKey getPrivateKey()
      Returns:
      Private key
    • hasValue

      static boolean hasValue(String value)