public final class LazyX509Certificate extends X509Certificate
Certificate.CertificateRep
Constructor and Description |
---|
LazyX509Certificate(byte[] bytes)
Creates a new instance which will lazy parse the given bytes.
|
equals, getType, hashCode, writeReplace
public LazyX509Certificate(byte[] bytes)
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 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 void verify(PublicKey key, Provider sigProvider) throws CertificateException, NoSuchAlgorithmException, InvalidKeyException, SignatureException
verify
in class X509Certificate
CertificateException
NoSuchAlgorithmException
InvalidKeyException
SignatureException
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()
getEncoded
in class Certificate
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 boolean hasUnsupportedCriticalExtension()
public byte[] getExtensionValue(String oid)
Copyright © 2008–2024 The Netty Project. All rights reserved.