Package org.conscrypt
Class OpenSSLX509CRL
java.lang.Object
java.security.cert.CRL
java.security.cert.X509CRL
org.conscrypt.OpenSSLX509CRL
- All Implemented Interfaces:
X509Extension
An implementation of
X509CRL based on BoringSSL.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidfinalize()(package private) static List<OpenSSLX509CRL> (package private) static List<OpenSSLX509CRL> (package private) static OpenSSLX509CRL(package private) static OpenSSLX509CRLbyte[]byte[]getExtensionValue(String oid) getRevokedCertificate(BigInteger serialNumber) getRevokedCertificate(X509Certificate certificate) Set<? extends X509CRLEntry> byte[]byte[]byte[]intbooleanbooleanisRevoked(Certificate cert) (package private) static DatetoDate(long asn1time) toString()voidvoidprivate voidverifyInternal(PublicKey key, String sigProvider) private voidverifyOpenSSL(OpenSSLKey pkey)
-
Field Details
-
mContext
private final long mContext -
thisUpdate
-
nextUpdate
-
-
Constructor Details
-
OpenSSLX509CRL
-
-
Method Details
-
toDate
-
fromX509DerInputStream
static OpenSSLX509CRL fromX509DerInputStream(InputStream is) throws OpenSSLX509CertificateFactory.ParsingException -
fromPkcs7DerInputStream
static List<OpenSSLX509CRL> fromPkcs7DerInputStream(InputStream is) throws OpenSSLX509CertificateFactory.ParsingException -
fromX509PemInputStream
static OpenSSLX509CRL fromX509PemInputStream(InputStream is) throws OpenSSLX509CertificateFactory.ParsingException -
fromPkcs7PemInputStream
static List<OpenSSLX509CRL> fromPkcs7PemInputStream(InputStream is) throws OpenSSLX509CertificateFactory.ParsingException -
getCriticalExtensionOIDs
-
getExtensionValue
-
getNonCriticalExtensionOIDs
-
hasUnsupportedCriticalExtension
public boolean hasUnsupportedCriticalExtension() -
getEncoded
- Specified by:
getEncodedin classX509CRL- Throws:
CRLException
-
verifyOpenSSL
private void verifyOpenSSL(OpenSSLKey pkey) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException -
verifyInternal
private void verifyInternal(PublicKey key, String sigProvider) throws CRLException, NoSuchAlgorithmException, InvalidKeyException, NoSuchProviderException, SignatureException -
verify
public void verify(PublicKey key) throws CRLException, NoSuchAlgorithmException, InvalidKeyException, NoSuchProviderException, SignatureException - Specified by:
verifyin classX509CRL- Throws:
CRLExceptionNoSuchAlgorithmExceptionInvalidKeyExceptionNoSuchProviderExceptionSignatureException
-
verify
public void verify(PublicKey key, String sigProvider) throws CRLException, NoSuchAlgorithmException, InvalidKeyException, NoSuchProviderException, SignatureException - Specified by:
verifyin classX509CRL- Throws:
CRLExceptionNoSuchAlgorithmExceptionInvalidKeyExceptionNoSuchProviderExceptionSignatureException
-
getVersion
public int getVersion()- Specified by:
getVersionin classX509CRL
-
getIssuerDN
- Specified by:
getIssuerDNin classX509CRL
-
getIssuerX500Principal
- Overrides:
getIssuerX500Principalin classX509CRL
-
getThisUpdate
- Specified by:
getThisUpdatein classX509CRL
-
getNextUpdate
- Specified by:
getNextUpdatein classX509CRL
-
getRevokedCertificate
- Specified by:
getRevokedCertificatein classX509CRL
-
getRevokedCertificate
- Overrides:
getRevokedCertificatein classX509CRL
-
getRevokedCertificates
- Specified by:
getRevokedCertificatesin classX509CRL
-
getTBSCertList
- Specified by:
getTBSCertListin classX509CRL- Throws:
CRLException
-
getSignature
public byte[] getSignature()- Specified by:
getSignaturein classX509CRL
-
getSigAlgName
- Specified by:
getSigAlgNamein classX509CRL
-
getSigAlgOID
- Specified by:
getSigAlgOIDin classX509CRL
-
getSigAlgParams
public byte[] getSigAlgParams()- Specified by:
getSigAlgParamsin classX509CRL
-
isRevoked
-
toString
-
finalize
-