Package com.sap.cloud.security.x509
Interface Certificate
public interface Certificate
Represents mTLS certificate.
-
Method Summary
Modifier and TypeMethodDescriptionGets certificate subject DN.Gets certificate subject DN map.Gets certificate 'x5t' thumbprint which is a base64url-encoded SHA-1 thumbprint (a.k.a. digest) of the DER encoding of an X.509 certificate.
-
Method Details
-
getThumbprint
Gets certificate 'x5t' thumbprint which is a base64url-encoded SHA-1 thumbprint (a.k.a. digest) of the DER encoding of an X.509 certificate.- Returns:
- the thumbprint
- Throws:
InvalidCertificateException- if error occurs while encoding X509 certificate or when a particular cryptographic algorithm is not supported- See Also:
-
getSubjectDN
String getSubjectDN()Gets certificate subject DN.- Returns:
- the subject DN string without blanks
-
getSubjectDNMap
Gets certificate subject DN map.- Returns:
- the subject DN map with entries such as ["CN"]["common name"], or ["OU"]["1234-5678"]
-