FileDocCategorySizeDatePackage
X509CRLEntryImpl.javaAPI DocAndroid 1.5 API6083Wed May 06 22:41:06 BST 2009org.apache.harmony.security.provider.cert

X509CRLEntryImpl

public class X509CRLEntryImpl extends X509CRLEntry
Implementation of X509CRLEntry. It wraps the instance of org.apache.harmony.security.x509.TBSCertList.RevokedCertificate obtained during the decoding of TBSCertList substructure of the CertificateList structure which is an X.509 form of CRL. (see RFC 3280 at http://www.ietf.org/rfc/rfc3280.txt) Normally the instances of this class are constructed by involving X509CRLImpl object.
see
org.apache.harmony.security.x509.TBSCertList
see
org.apache.harmony.security.provider.cert.X509CRLImpl
see
java.security.cert.X509CRLEntry

Fields Summary
private final TBSCertList.RevokedCertificate
rcert
private final org.apache.harmony.security.x509.Extensions
extensions
private final X500Principal
issuer
private byte[]
encoding
Constructors Summary
public X509CRLEntryImpl(TBSCertList.RevokedCertificate rcert, X500Principal issuer)
Creates an instance on the base of existing TBSCertList.RevokedCertificate object and information about the issuer of revoked certificate. If specified issuer is null, it is supposed that issuer of the revoked certificate is the same as for involving CRL.

        this.rcert = rcert;
        this.extensions = rcert.getCrlEntryExtensions();
        this.issuer = issuer;
    
Methods Summary
public javax.security.auth.x500.X500PrincipalgetCertificateIssuer()

see
java.security.cert.X509CRLEntry#getCertificateIssuer() method documentation for more info

        return issuer;
    
public java.util.SetgetCriticalExtensionOIDs()

see
java.security.cert.X509Extension#getCriticalExtensionOIDs() method documentation for more info

        if (extensions == null) {
            return null;
        }
        return extensions.getCriticalExtensions();
    
public byte[]getEncoded()

see
java.security.cert.X509CRLEntry#getEncoded() method documentation for more info

        if (encoding == null) {
            encoding = rcert.getEncoded();
        }
        byte[] result = new byte[encoding.length];
        System.arraycopy(encoding, 0, result, 0, encoding.length);
        return result;
    
public byte[]getExtensionValue(java.lang.String oid)

see
java.security.cert.X509Extension#getExtensionValue(String) method documentation for more info

        if (extensions == null) {
            return null;
        }
        Extension ext = extensions.getExtensionByOID(oid);
        return (ext == null) ? null : ext.getRawExtnValue();
    
public java.util.SetgetNonCriticalExtensionOIDs()

see
java.security.cert.X509Extension#getNonCriticalExtensionOIDs() method documentation for more info

        if (extensions == null) {
            return null;
        }
        return extensions.getNonCriticalExtensions();
    
public java.util.DategetRevocationDate()

see
java.security.cert.X509CRLEntry#getRevocationDate() method documentation for more info

        return rcert.getRevocationDate();
    
public java.math.BigIntegergetSerialNumber()

see
java.security.cert.X509CRLEntry#getSerialNumber() method documentation for more info

        return rcert.getUserCertificate();
    
public booleanhasExtensions()

see
java.security.cert.X509CRLEntry#hasExtensions() method documentation for more info

        return (extensions != null) && (extensions.size() != 0);
    
public booleanhasUnsupportedCriticalExtension()

see
java.security.cert.X509Extension#hasUnsupportedCriticalExtension() method documentation for more info

        if (extensions == null) {
            return false;
        }
        return extensions.hasUnsupportedCritical();
    
public java.lang.StringtoString()

see
java.security.cert.X509CRLEntry#toString() method documentation for more info

        return "X509CRLEntryImpl: "+rcert.toString(); //$NON-NLS-1$