FileDocCategorySizeDatePackage
X509CRLEntry.javaAPI DocAndroid 1.5 API4003Wed May 06 22:41:06 BST 2009java.security.cert

X509CRLEntry

public abstract class X509CRLEntry extends Object implements X509Extension
Abstract base class for entries in a certificate revocation list (CRL).
see
X509CRL
since
Android 1.0

Fields Summary
Constructors Summary
public X509CRLEntry()
Creates a new {@code X509CRLEntry} instance.

since
Android 1.0

Methods Summary
public booleanequals(java.lang.Object other)
Returns whether the specified object equals to this instance.

param
other the object to compare.
return
{@code true} if the specified object equals to this instance, otherwise {@code false}.
since
Android 1.0

        if (other == this) {
            return true;
        }
        if (!(other instanceof X509CRLEntry)) {
            return false;
        }
        X509CRLEntry obj = (X509CRLEntry) other;
        try {
            return Arrays.equals(getEncoded(), obj.getEncoded());
        } catch (CRLException e) {
            return false;
        }
    
public javax.security.auth.x500.X500PrincipalgetCertificateIssuer()
Returns the issuer of the revoked certificate.

return
the issuer of the revoked certificate, or {@code null} if the issuer is equal to the CRL issuer.
since
Android 1.0

        return null;
    
public abstract byte[]getEncoded()
Returns this entry in ASN.1 DER encoded form.

return
the encoded form of this entry.
throws
CRLException if encoding fails.
since
Android 1.0

public abstract java.util.DategetRevocationDate()
Returns the date when the certificate is revoked.

return
the date when the certificate is revoked.
since
Android 1.0

public abstract java.math.BigIntegergetSerialNumber()
Returns the serial number of the revoked certificate.

return
the serial number of the revoked certificate.
since
Android 1.0

public abstract booleanhasExtensions()
Returns whether this CRL entry has extensions.

return
{@code true} is this CRL entry has extensions, otherwise {@code false}.
since
Android 1.0

public inthashCode()
Returns the hashcode of this instance.

return
the hashcode of this instance.
since
Android 1.0

        int res = 0;
        try {
            byte[] array = getEncoded();
            for (int i=0; i<array.length; i++) {
                res += array[i] & 0xFF;
            }
        } catch (CRLException e) {
        }
        return res;
    
public abstract java.lang.StringtoString()
Returns a string representation of this instance.

return
a string representation of this instance.
since
Android 1.0