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 void
finalize()
(package private) static List
<OpenSSLX509CRL> (package private) static List
<OpenSSLX509CRL> (package private) static OpenSSLX509CRL
(package private) static OpenSSLX509CRL
byte[]
byte[]
getExtensionValue
(String oid) getRevokedCertificate
(BigInteger serialNumber) getRevokedCertificate
(X509Certificate certificate) Set
<? extends X509CRLEntry> byte[]
byte[]
byte[]
int
boolean
boolean
isRevoked
(Certificate cert) (package private) static Date
toDate
(long asn1time) toString()
void
void
private void
verifyInternal
(PublicKey key, String sigProvider) private void
verifyOpenSSL
(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:
getEncoded
in 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:
verify
in classX509CRL
- Throws:
CRLException
NoSuchAlgorithmException
InvalidKeyException
NoSuchProviderException
SignatureException
-
verify
public void verify(PublicKey key, String sigProvider) throws CRLException, NoSuchAlgorithmException, InvalidKeyException, NoSuchProviderException, SignatureException - Specified by:
verify
in classX509CRL
- Throws:
CRLException
NoSuchAlgorithmException
InvalidKeyException
NoSuchProviderException
SignatureException
-
getVersion
public int getVersion()- Specified by:
getVersion
in classX509CRL
-
getIssuerDN
- Specified by:
getIssuerDN
in classX509CRL
-
getIssuerX500Principal
- Overrides:
getIssuerX500Principal
in classX509CRL
-
getThisUpdate
- Specified by:
getThisUpdate
in classX509CRL
-
getNextUpdate
- Specified by:
getNextUpdate
in classX509CRL
-
getRevokedCertificate
- Specified by:
getRevokedCertificate
in classX509CRL
-
getRevokedCertificate
- Overrides:
getRevokedCertificate
in classX509CRL
-
getRevokedCertificates
- Specified by:
getRevokedCertificates
in classX509CRL
-
getTBSCertList
- Specified by:
getTBSCertList
in classX509CRL
- Throws:
CRLException
-
getSignature
public byte[] getSignature()- Specified by:
getSignature
in classX509CRL
-
getSigAlgName
- Specified by:
getSigAlgName
in classX509CRL
-
getSigAlgOID
- Specified by:
getSigAlgOID
in classX509CRL
-
getSigAlgParams
public byte[] getSigAlgParams()- Specified by:
getSigAlgParams
in classX509CRL
-
isRevoked
-
toString
-
finalize
-