Package com.sap.cloud.security.x509
Interface Certificate
-
public interface CertificateRepresents mTLS certificate.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetSubjectDN()Gets certificate subject DN.Map<String,String>getSubjectDNMap()Gets certificate subject DN map.StringgetThumbprint()Gets certificate 'x5t' thumbprint which is a base64url-encoded SHA-1 thumbprint (a.k.a.
-
-
-
Method Detail
-
getThumbprint
String getThumbprint() throws InvalidCertificateException
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:
- x5t
-
getSubjectDN
String getSubjectDN()
Gets certificate subject DN.- Returns:
- the subject DN string without blanks
-
-