Class ZeroTrustIdentityService
java.lang.Object
com.sap.cloud.sdk.cloudplatform.connectivity.ZeroTrustIdentityService
Implementation to access X.509 certificates provided by the Zero Trust Identity Service (ZTIS).
- Since:
- 5.7.0
-
Method Summary
Modifier and TypeMethodDescriptionio.vavr.control.Option<String>
Returns the app identifier assigned to the app via the Zero Trust Identity service binding.static ZeroTrustIdentityService
Returns a KeyStore containing the X.509 certificate and key provided by the Zero Trust Identity Service.Returns the SPIFFE ID assigned to the app via the Zero Trust Identity service binding.
-
Method Details
-
getSpiffeId
Returns the SPIFFE ID assigned to the app via the Zero Trust Identity service binding. This should always be equivalent to callinggetX509Svid()
withX509Svid.getSpiffeId()
.- Returns:
- The SPIFFE ID.
- Since:
- 5.7.0
-
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
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
-