public class Certificate extends Object
X509Certificate.getX509Certificate(),
getIssuingCaCertificate()| Modifier and Type | Method and Description |
|---|---|
KeyStore |
createTrustStore()
Create a trust store as
KeyStore from this Certificate containing
the certificate chain. |
String |
getCertificate() |
String |
getIssuingCaCertificate() |
String |
getSerialNumber() |
X509Certificate |
getX509Certificate()
Retrieve the certificate as
X509Certificate. |
X509Certificate |
getX509IssuerCertificate()
Retrieve the issuing CA certificate as
X509Certificate. |
static Certificate |
of(String serialNumber,
String certificate,
String issuingCaCertificate)
Create a
Certificate given a private key with certificates and the serial
number. |
public static Certificate of(String serialNumber, String certificate, String issuingCaCertificate)
Certificate given a private key with certificates and the serial
number.serialNumber - must not be empty or null.certificate - must not be empty or null.issuingCaCertificate - must not be empty or null.Certificatepublic String getSerialNumber()
public String getCertificate()
public String getIssuingCaCertificate()
public X509Certificate getX509Certificate()
X509Certificate. Only supported if certificate
is DER-encoded.X509Certificate.public X509Certificate getX509IssuerCertificate()
X509Certificate. Only supported if
certificate is DER-encoded.X509Certificate.public KeyStore createTrustStore()
KeyStore from this Certificate containing
the certificate chain. Only supported if certificate is DER-encoded.KeyStore containing the private key and certificate chain.Copyright © 2016–2021 Pivotal Software, Inc.. All rights reserved.