- java.lang.Object
-
- javax.security.cert.Certificate
-
- javax.security.cert.X509Certificate
-
- io.netty5.handler.ssl.util.LazyJavaxX509Certificate
-
public final class LazyJavaxX509Certificate extends X509Certificate
-
-
Constructor Summary
Constructors Constructor Description LazyJavaxX509Certificate(byte[] bytes)
Creates a new instance which will lazy parse the given bytes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkValidity()
void
checkValidity(Date date)
byte[]
getEncoded()
Principal
getIssuerDN()
Date
getNotAfter()
Date
getNotBefore()
PublicKey
getPublicKey()
BigInteger
getSerialNumber()
String
getSigAlgName()
String
getSigAlgOID()
byte[]
getSigAlgParams()
Principal
getSubjectDN()
int
getVersion()
String
toString()
void
verify(PublicKey key)
void
verify(PublicKey key, String sigProvider)
-
Methods inherited from class javax.security.cert.X509Certificate
getInstance, getInstance
-
Methods inherited from class javax.security.cert.Certificate
equals, hashCode
-
-
-
-
Method Detail
-
checkValidity
public void checkValidity() throws CertificateExpiredException, CertificateNotYetValidException
- Specified by:
checkValidity
in classX509Certificate
- Throws:
CertificateExpiredException
CertificateNotYetValidException
-
checkValidity
public void checkValidity(Date date) throws CertificateExpiredException, CertificateNotYetValidException
- Specified by:
checkValidity
in classX509Certificate
- Throws:
CertificateExpiredException
CertificateNotYetValidException
-
getVersion
public int getVersion()
- Specified by:
getVersion
in classX509Certificate
-
getSerialNumber
public BigInteger getSerialNumber()
- Specified by:
getSerialNumber
in classX509Certificate
-
getIssuerDN
public Principal getIssuerDN()
- Specified by:
getIssuerDN
in classX509Certificate
-
getSubjectDN
public Principal getSubjectDN()
- Specified by:
getSubjectDN
in classX509Certificate
-
getNotBefore
public Date getNotBefore()
- Specified by:
getNotBefore
in classX509Certificate
-
getNotAfter
public Date getNotAfter()
- Specified by:
getNotAfter
in classX509Certificate
-
getSigAlgName
public String getSigAlgName()
- Specified by:
getSigAlgName
in classX509Certificate
-
getSigAlgOID
public String getSigAlgOID()
- Specified by:
getSigAlgOID
in classX509Certificate
-
getSigAlgParams
public byte[] getSigAlgParams()
- Specified by:
getSigAlgParams
in classX509Certificate
-
getEncoded
public byte[] getEncoded()
- Specified by:
getEncoded
in classCertificate
-
verify
public void verify(PublicKey key) throws CertificateException, NoSuchAlgorithmException, InvalidKeyException, NoSuchProviderException, SignatureException
- Specified by:
verify
in classCertificate
- Throws:
CertificateException
NoSuchAlgorithmException
InvalidKeyException
NoSuchProviderException
SignatureException
-
verify
public void verify(PublicKey key, String sigProvider) throws CertificateException, NoSuchAlgorithmException, InvalidKeyException, NoSuchProviderException, SignatureException
- Specified by:
verify
in classCertificate
- Throws:
CertificateException
NoSuchAlgorithmException
InvalidKeyException
NoSuchProviderException
SignatureException
-
toString
public String toString()
- Specified by:
toString
in classCertificate
-
getPublicKey
public PublicKey getPublicKey()
- Specified by:
getPublicKey
in classCertificate
-
-