Class X509CRLObject
java.lang.Object
java.security.cert.CRL
java.security.cert.X509CRL
org.gudy.bouncycastle.jce.provider.X509CRLObject
- All Implemented Interfaces:
X509Extension
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 Set
getExtensionOIDs
(boolean critical) byte[]
getExtensionValue
(String oid) getRevokedCertificate
(BigInteger serialNumber) byte[]
byte[]
byte[]
int
boolean
Will return true if any extensions are present and marked as critical as we currently dont handle any extensions!boolean
isRevoked
(Certificate cert) Checks whether the given certificate is on this CRL.toString()
Returns a string representation of this CRL.void
void
Methods inherited from class java.security.cert.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:
getEncoded
in classX509CRL
- Throws:
CRLException
-
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
-
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
-
toString
Returns a string representation of this CRL. -
isRevoked
Checks whether the given certificate is on this CRL.
-