Methods Summary |
---|
public boolean | equals(java.lang.Object other)Compares this CRL entry for equality with the given
object. If the other object is an
instanceof X509CRLEntry , then
its encoded form (the inner SEQUENCE) is retrieved and compared
with the encoded form of this CRL entry.
if (this == other)
return true;
if (!(other instanceof X509CRLEntry))
return false;
try {
byte[] thisCRLEntry = this.getEncoded();
byte[] otherCRLEntry = ((X509CRLEntry)other).getEncoded();
if (thisCRLEntry.length != otherCRLEntry.length)
return false;
for (int i = 0; i < thisCRLEntry.length; i++)
if (thisCRLEntry[i] != otherCRLEntry[i])
return false;
} catch (CRLException ce) {
return false;
}
return true;
|
public javax.security.auth.x500.X500Principal | getCertificateIssuer()Get the issuer of the X509Certificate described by this entry. If
the certificate issuer is also the CRL issuer, this method returns
null.
This method is used with indirect CRLs. The default implementation
always returns null. Subclasses that wish to support indirect CRLs
should override it.
return null;
|
public abstract byte[] | getEncoded()Returns the ASN.1 DER-encoded form of this CRL Entry,
that is the inner SEQUENCE.
|
public abstract java.util.Date | getRevocationDate()Gets the revocation date from this X509CRLEntry,
the revocationDate.
|
public abstract java.math.BigInteger | getSerialNumber()Gets the serial number from this X509CRLEntry,
the userCertificate.
|
public abstract boolean | hasExtensions()Returns true if this CRL entry has extensions.
|
public int | hashCode()Returns a hashcode value for this CRL entry from its
encoded form.
int retval = 0;
try {
byte[] entryData = this.getEncoded();
for (int i = 1; i < entryData.length; i++)
retval += entryData[i] * i;
} catch (CRLException ce) {
return(retval);
}
return(retval);
|
public abstract java.lang.String | toString()Returns a string representation of this CRL entry.
|