public class X509CRLEntryObject extends X509CRLEntry
| Constructor and Description |
|---|
X509CRLEntryObject(TBSCertList.CRLEntry c) |
X509CRLEntryObject(TBSCertList.CRLEntry c,
boolean isIndirect,
X500Name previousCertificateIssuer)
Constructor for CRLEntries of indirect CRLs.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o)
Returns whether the specified object equals to this instance.
|
X500Principal |
getCertificateIssuer()
Returns the issuer of the revoked certificate.
|
Set |
getCriticalExtensionOIDs()
Returns the set of OIDs of the extension(s) marked as CRITICAL, that this
implementation manages.
|
byte[] |
getEncoded()
Returns this entry in ASN.1 DER encoded form.
|
byte[] |
getExtensionValue(String oid)
Returns the extension value as DER-encoded OCTET string for the specified
OID.
|
Set |
getNonCriticalExtensionOIDs()
Returns the set of OIDs of the extension(s) marked as NON-CRITICAL, that
this implementation manages.
|
Date |
getRevocationDate()
Returns the date when the certificate is revoked.
|
BigInteger |
getSerialNumber()
Returns the serial number of the revoked certificate.
|
boolean |
hasExtensions()
Returns whether this CRL entry has extensions.
|
int |
hashCode()
Cache the hashCode value - calculating it with the standard method.
|
boolean |
hasUnsupportedCriticalExtension()
Will return true if any extensions are present and marked as critical as
we currently don't handle any extensions!
|
String |
toString()
Returns a string representation of this instance.
|
getRevocationReasonpublic X509CRLEntryObject(TBSCertList.CRLEntry c)
public X509CRLEntryObject(TBSCertList.CRLEntry c, boolean isIndirect, X500Name previousCertificateIssuer)
isIndirect
is false getCertificateIssuer() will always
return null, previousCertificateIssuer is
ignored. If this isIndirect is specified and this CRLEntry
has no certificate issuer CRL entry extension
previousCertificateIssuer is returned by
getCertificateIssuer().c - TBSCertList.CRLEntry object.isIndirect - true if the corresponding CRL is a indirect
CRL.previousCertificateIssuer - Certificate issuer of the previous CRLEntry.public boolean hasUnsupportedCriticalExtension()
true if an unsupported CRITICAL extension is present,
false otherwise.public X500Principal getCertificateIssuer()
X509CRLEntrygetCertificateIssuer in class X509CRLEntrynull if the
issuer is equal to the CRL issuer.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 int hashCode()
hashCode in class X509CRLEntryObject.equals(java.lang.Object)public boolean equals(Object o)
X509CRLEntryequals in class X509CRLEntryo - the object to compare.true if the specified object equals to this instance,
otherwise false.Object.hashCode()public byte[] getEncoded()
throws CRLException
X509CRLEntrygetEncoded in class X509CRLEntryCRLException - if encoding fails.public BigInteger getSerialNumber()
X509CRLEntrygetSerialNumber in class X509CRLEntrypublic Date getRevocationDate()
X509CRLEntrygetRevocationDate in class X509CRLEntrypublic boolean hasExtensions()
X509CRLEntryhasExtensions in class X509CRLEntrytrue is this CRL entry has extensions, otherwise false.public String toString()
X509CRLEntrytoString in class X509CRLEntry