public class OpenSSLX509Certificate extends X509Certificate
Certificate.CertificateRep
verify
getType, writeReplace
public static OpenSSLX509Certificate fromX509DerInputStream(InputStream is) throws org.conscrypt.OpenSSLX509CertificateFactory.ParsingException
org.conscrypt.OpenSSLX509CertificateFactory.ParsingException
public static OpenSSLX509Certificate fromX509Der(byte[] encoded) throws CertificateEncodingException
CertificateEncodingException
public static List<OpenSSLX509Certificate> fromPkcs7DerInputStream(InputStream is) throws org.conscrypt.OpenSSLX509CertificateFactory.ParsingException
org.conscrypt.OpenSSLX509CertificateFactory.ParsingException
public static OpenSSLX509Certificate fromX509PemInputStream(InputStream is) throws org.conscrypt.OpenSSLX509CertificateFactory.ParsingException
org.conscrypt.OpenSSLX509CertificateFactory.ParsingException
public static List<OpenSSLX509Certificate> fromPkcs7PemInputStream(InputStream is) throws org.conscrypt.OpenSSLX509CertificateFactory.ParsingException
org.conscrypt.OpenSSLX509CertificateFactory.ParsingException
public static OpenSSLX509Certificate fromCertificate(Certificate cert) throws CertificateEncodingException
CertificateEncodingException
public byte[] getExtensionValue(String oid)
public boolean hasUnsupportedCriticalExtension()
public void checkValidity() throws CertificateExpiredException, CertificateNotYetValidException
checkValidity
in class X509Certificate
CertificateExpiredException
CertificateNotYetValidException
public void checkValidity(Date date) throws CertificateExpiredException, CertificateNotYetValidException
checkValidity
in class X509Certificate
CertificateExpiredException
CertificateNotYetValidException
public int getVersion()
getVersion
in class X509Certificate
public BigInteger getSerialNumber()
getSerialNumber
in class X509Certificate
public Principal getIssuerDN()
getIssuerDN
in class X509Certificate
public Principal getSubjectDN()
getSubjectDN
in class X509Certificate
public Date getNotBefore()
getNotBefore
in class X509Certificate
public Date getNotAfter()
getNotAfter
in class X509Certificate
public byte[] getTBSCertificate() throws CertificateEncodingException
getTBSCertificate
in class X509Certificate
CertificateEncodingException
public byte[] getSignature()
getSignature
in class X509Certificate
public String getSigAlgName()
getSigAlgName
in class X509Certificate
public String getSigAlgOID()
getSigAlgOID
in class X509Certificate
public byte[] getSigAlgParams()
getSigAlgParams
in class X509Certificate
public boolean[] getIssuerUniqueID()
getIssuerUniqueID
in class X509Certificate
public boolean[] getSubjectUniqueID()
getSubjectUniqueID
in class X509Certificate
public boolean[] getKeyUsage()
getKeyUsage
in class X509Certificate
public int getBasicConstraints()
getBasicConstraints
in class X509Certificate
public byte[] getEncoded() throws CertificateEncodingException
getEncoded
in class Certificate
CertificateEncodingException
public void verify(PublicKey key) throws CertificateException, NoSuchAlgorithmException, InvalidKeyException, NoSuchProviderException, SignatureException
verify
in class Certificate
CertificateException
NoSuchAlgorithmException
InvalidKeyException
NoSuchProviderException
SignatureException
public void verify(PublicKey key, String sigProvider) throws CertificateException, NoSuchAlgorithmException, InvalidKeyException, NoSuchProviderException, SignatureException
verify
in class Certificate
CertificateException
NoSuchAlgorithmException
InvalidKeyException
NoSuchProviderException
SignatureException
public String toString()
toString
in class Certificate
public PublicKey getPublicKey()
getPublicKey
in class Certificate
public X500Principal getIssuerX500Principal()
getIssuerX500Principal
in class X509Certificate
public X500Principal getSubjectX500Principal()
getSubjectX500Principal
in class X509Certificate
public List<String> getExtendedKeyUsage() throws CertificateParsingException
getExtendedKeyUsage
in class X509Certificate
CertificateParsingException
public Collection<List<?>> getSubjectAlternativeNames() throws CertificateParsingException
getSubjectAlternativeNames
in class X509Certificate
CertificateParsingException
public Collection<List<?>> getIssuerAlternativeNames() throws CertificateParsingException
getIssuerAlternativeNames
in class X509Certificate
CertificateParsingException
public boolean equals(Object other)
equals
in class Certificate
public int hashCode()
hashCode
in class Certificate
public long getContext()
OpenSSLX509Certificate
instance and must not be destroyed or
freed by users of this API.public OpenSSLX509Certificate withDeletedExtension(String oid)