Class ZeroTrustIdentityService

java.lang.Object
com.sap.cloud.sdk.cloudplatform.connectivity.ZeroTrustIdentityService

@Beta public class ZeroTrustIdentityService extends Object
Implementation to access X.509 certificates provided by the Zero Trust Identity Service (ZTIS).
Since:
5.7.0
  • Method Details

    • getSpiffeId

      @Nonnull public String getSpiffeId()
      Returns the SPIFFE ID assigned to the app via the Zero Trust Identity service binding. This should always be equivalent to calling getX509Svid() with X509Svid.getSpiffeId().
      Returns:
      The SPIFFE ID.
      Since:
      5.7.0
    • getAppIdentifier

      @Nonnull public io.vavr.control.Option<String> getAppIdentifier()
      Returns the app identifier assigned to the app via the Zero Trust Identity service binding.
      Returns:
      The app identifier.
      Since:
      5.7.0
    • getOrCreateKeyStore

      @Nonnull public KeyStore getOrCreateKeyStore()
      Returns a KeyStore containing the X.509 certificate and key provided by the Zero Trust Identity Service. The KeyStore is cached and will be reloaded if the certificate expires.
      Returns:
      a KeyStore containing the X.509 certificate and key.
      Since:
      5.7.0
    • getInstance

      public static ZeroTrustIdentityService getInstance()