public class X509CRLObject extends X509CRL
| Constructor and Description |
|---|
X509CRLObject(CertificateList c) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other)
Returns whether the specified object equals to this instance.
|
Set |
getCriticalExtensionOIDs()
Returns the set of OIDs of the extension(s) marked as CRITICAL, that this
implementation manages.
|
byte[] |
getEncoded()
Returns this CRL in ASN.1 DER encoded form.
|
byte[] |
getExtensionValue(String oid)
Returns the extension value as DER-encoded OCTET string for the specified
OID.
|
Principal |
getIssuerDN()
Do not use, use
X509CRL.getIssuerX500Principal() instead. |
X500Principal |
getIssuerX500Principal()
Returns the issuer distinguished name of this CRL.
|
Date |
getNextUpdate()
Returns the
nextUpdate value of this CRL. |
Set |
getNonCriticalExtensionOIDs()
Returns the set of OIDs of the extension(s) marked as NON-CRITICAL, that
this implementation manages.
|
X509CRLEntry |
getRevokedCertificate(BigInteger serialNumber)
Returns the CRL entry with the specified certificate serial number.
|
Set |
getRevokedCertificates()
Returns the set of revoked certificates.
|
String |
getSigAlgName()
Returns the name of the signature algorithm.
|
String |
getSigAlgOID()
Returns the OID of the signature algorithm.
|
byte[] |
getSigAlgParams()
Returns the parameters of the signature algorithm in DER encoded form.
|
byte[] |
getSignature()
Returns the signature bytes of this CRL.
|
byte[] |
getTBSCertList()
Returns the
tbsCertList information of this CRL in DER encoded
form. |
Date |
getThisUpdate()
Returns the
thisUpdate value of this CRL. |
int |
getVersion()
Returns the version number of this CRL.
|
int |
hashCode()
Returns the hashcode of this CRL instance.
|
boolean |
hasUnsupportedCriticalExtension()
Will return true if any extensions are present and marked
as critical as we currently dont handle any extensions!
|
static boolean |
isIndirectCRL(X509CRL crl) |
boolean |
isRevoked(Certificate cert)
Checks whether the given certificate is on this CRL.
|
String |
toString()
Returns a string representation of this CRL.
|
void |
verify(PublicKey key)
Verifies this CRL by verifying that this CRL was signed with the
corresponding private key to the specified public key.
|
void |
verify(PublicKey key,
String sigProvider)
Verifies this CRL by verifying that this CRL was signed with the
corresponding private key to the specified public key.
|
getRevokedCertificatepublic X509CRLObject(CertificateList c) throws CRLException
CRLExceptionpublic static boolean isIndirectCRL(X509CRL crl) throws CRLException
CRLExceptionpublic boolean hasUnsupportedCriticalExtension()
true if an unsupported CRITICAL extension is present,
false otherwise.public Set getCriticalExtensionOIDs()
X509Extensionnull if no extensions are
present.public Set getNonCriticalExtensionOIDs()
X509Extensionnull if no
extensions are present.public byte[] getExtensionValue(String oid)
X509Extensionoid - the object identifier to get the extension value for.null
if no extension for the specified OID can be found.public byte[] getEncoded()
throws CRLException
X509CRLgetEncoded in class X509CRLCRLException - if encoding fails.public void verify(PublicKey key) throws CRLException, NoSuchAlgorithmException, InvalidKeyException, NoSuchProviderException, SignatureException
X509CRLverify in class X509CRLkey - the public key to verify this CRL with.CRLException - if encoding or decoding fails.NoSuchAlgorithmException - if a needed algorithm is not present.InvalidKeyException - if the specified key is invalid.NoSuchProviderException - if no provider can be found.SignatureException - if errors occur on signatures.public void verify(PublicKey key, String sigProvider) throws CRLException, NoSuchAlgorithmException, InvalidKeyException, NoSuchProviderException, SignatureException
X509CRLverify in class X509CRLkey - the public key to verify this CRL with.sigProvider - the name of the provider for the signature algorithm.CRLException - if encoding decoding fails.NoSuchAlgorithmException - if a needed algorithm is not present.InvalidKeyException - if the specified key is invalid.NoSuchProviderException - if the specified provider cannot be found.SignatureException - if errors occur on signatures.public int getVersion()
X509CRLgetVersion in class X509CRLpublic Principal getIssuerDN()
X509CRLX509CRL.getIssuerX500Principal() instead. Returns
the issuer as an implementation specific Principal object.getIssuerDN in class X509CRLpublic X500Principal getIssuerX500Principal()
X509CRLgetIssuerX500Principal in class X509CRLpublic Date getThisUpdate()
X509CRLthisUpdate value of this CRL.getThisUpdate in class X509CRLthisUpdate value of this CRL.public Date getNextUpdate()
X509CRLnextUpdate value of this CRL.getNextUpdate in class X509CRLnextUpdate value of this CRL, or null if none
is present.public X509CRLEntry getRevokedCertificate(BigInteger serialNumber)
X509CRLgetRevokedCertificate in class X509CRLserialNumber - the certificate serial number to search for a CRL entry.null if not found.public Set getRevokedCertificates()
X509CRLgetRevokedCertificates in class X509CRLnull if no revoked
certificates are in this CRL.public byte[] getTBSCertList()
throws CRLException
X509CRLtbsCertList information of this CRL in DER encoded
form.getTBSCertList in class X509CRLCRLException - if encoding fails.public byte[] getSignature()
X509CRLgetSignature in class X509CRLpublic String getSigAlgName()
X509CRLgetSigAlgName in class X509CRLpublic String getSigAlgOID()
X509CRLgetSigAlgOID in class X509CRLpublic byte[] getSigAlgParams()
X509CRLgetSigAlgParams in class X509CRLnull if not present.public String toString()
public boolean isRevoked(Certificate cert)
public boolean equals(Object other)
X509CRLequals in class X509CRLother - the object to compare.true if the specified object is equal to this, otherwise
false.Object.hashCode()public int hashCode()
X509CRLhashCode in class X509CRLObject.equals(java.lang.Object)