Class X509Certificate
java.lang.Object
com.sap.cloud.security.x509.X509Certificate
-
Method Summary
Modifier and TypeMethodDescriptiongetPEM()static X509CertificatenewCertificate(String pemOrXfcc) Creates a new instance of X.509 certificate.static X509CertificateCreates a new instance of X.509 certificate.static X509CertificatenewCertificateFromXFCC(String headerValue) Creates a new instance of X.509 certificate.
-
Method Details
-
newCertificate
Creates a new instance of X.509 certificate.- Parameters:
pemOrXfcc- either the certificate encoded as PEM (or plain base64) or the complete content of the XFCC header- Returns:
- instance of X509certificate
-
newCertificateFromPEM
Creates a new instance of X.509 certificate.- Parameters:
pem- the certificate encoded in base64 or PEM format- Returns:
- instance of X509certificate
-
newCertificateFromXFCC
Creates a new instance of X.509 certificate.- Parameters:
headerValue- the content of the XFCC header- Returns:
- instance of X509certificate
-
getThumbprint
- Specified by:
getThumbprintin interfaceCertificate- Throws:
InvalidCertificateException
-
getSubjectDN
- Specified by:
getSubjectDNin interfaceCertificate
-
getSubjectDNMap
- Specified by:
getSubjectDNMapin interfaceCertificate
-
getPEM
- Returns:
- a base64 encoded DER certificate or certificate in PEM format
-