Class X509CRLObject
java.lang.Object
java.security.cert.CRL
java.security.cert.X509CRL
org.gudy.bouncycastle.jce.provider.X509CRLObject
- All Implemented Interfaces:
X509Extension, DEREncodablePREVIEW
The following extensions are listed in RFC 2459 as relevant to CRLs
Authority Key Identifier
Issuer Alternative Name
CRL Number
Delta CRL Indicator (critical)
Issuing Distribution Point (critical)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]private SetgetExtensionOIDs(boolean critical) byte[]getExtensionValue(String oid) getRevokedCertificate(BigInteger serialNumber) byte[]byte[]byte[]intbooleanWill return true if any extensions are present and marked as critical as we currently dont handle any extensions!booleanisRevoked(Certificate cert) Checks whether the given certificate is on this CRL.toString()Returns a string representation of this CRL.voidvoidMethods inherited from class X509CRL
equals, getRevokedCertificate, hashCode, verify
-
Field Details
-
c
-
-
Constructor Details
-
X509CRLObject
-
-
Method Details
-
hasUnsupportedCriticalExtension
public boolean hasUnsupportedCriticalExtension()Will return true if any extensions are present and marked as critical as we currently dont handle any extensions! -
getExtensionOIDs
-
getCriticalExtensionOIDs
-
getNonCriticalExtensionOIDs
-
getExtensionValue
-
getEncoded
- Specified by:
getEncodedin classX509CRL- Throws:
CRLException
-
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
-
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
-
toString
-
isRevoked
Checks whether the given certificate is on this CRL.
-