Class LazyJavaxX509Certificate
java.lang.Object
javax.security.cert.Certificate
javax.security.cert.X509Certificate
io.netty.handler.ssl.util.LazyJavaxX509Certificate
-
Constructor Summary
ConstructorsConstructorDescriptionLazyJavaxX509Certificate(byte[] bytes) Creates a new instance which will lazy parse the given bytes. -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidcheckValidity(Date date) byte[]byte[]inttoString()voidvoidMethods inherited from class X509Certificate
getInstance, getInstanceMethods inherited from class Certificate
equals, hashCode
-
Constructor Details
-
LazyJavaxX509Certificate
public LazyJavaxX509Certificate(byte[] bytes) Creates a new instance which will lazy parse the given bytes. Be aware that the bytes will not be cloned.
-
-
Method Details
-
checkValidity
- Specified by:
checkValidityin classX509Certificate- Throws:
CertificateExpiredExceptionCertificateNotYetValidException
-
checkValidity
public void checkValidity(Date date) throws CertificateExpiredException, CertificateNotYetValidException - Specified by:
checkValidityin classX509Certificate- Throws:
CertificateExpiredExceptionCertificateNotYetValidException
-
getVersion
public int getVersion()- Specified by:
getVersionin classX509Certificate
-
getSerialNumber
- Specified by:
getSerialNumberin classX509Certificate
-
getIssuerDN
- Specified by:
getIssuerDNin classX509Certificate
-
getSubjectDN
- Specified by:
getSubjectDNin classX509Certificate
-
getNotBefore
- Specified by:
getNotBeforein classX509Certificate
-
getNotAfter
- Specified by:
getNotAfterin classX509Certificate
-
getSigAlgName
- Specified by:
getSigAlgNamein classX509Certificate
-
getSigAlgOID
- Specified by:
getSigAlgOIDin classX509Certificate
-
getSigAlgParams
public byte[] getSigAlgParams()- Specified by:
getSigAlgParamsin classX509Certificate
-
getEncoded
public byte[] getEncoded()- Specified by:
getEncodedin classCertificate
-
verify
public void verify(PublicKey key) throws CertificateException, NoSuchAlgorithmException, InvalidKeyException, NoSuchProviderException, SignatureException - Specified by:
verifyin classCertificate- Throws:
CertificateExceptionNoSuchAlgorithmExceptionInvalidKeyExceptionNoSuchProviderExceptionSignatureException
-
verify
public void verify(PublicKey key, String sigProvider) throws CertificateException, NoSuchAlgorithmException, InvalidKeyException, NoSuchProviderException, SignatureException - Specified by:
verifyin classCertificate- Throws:
CertificateExceptionNoSuchAlgorithmExceptionInvalidKeyExceptionNoSuchProviderExceptionSignatureException
-
toString
- Specified by:
toStringin classCertificate
-
getPublicKey
- Specified by:
getPublicKeyin classCertificate
-