FileDocCategorySizeDatePackage
CertificateList.javaAPI DocAndroid 1.5 API2827Wed May 06 22:41:06 BST 2009org.bouncycastle.asn1.x509

CertificateList

public class CertificateList extends org.bouncycastle.asn1.ASN1Encodable
PKIX RFC-2459 The X.509 v2 CRL syntax is as follows. For signature calculation, the data that is to be signed is ASN.1 DER encoded.
CertificateList ::= SEQUENCE {
tbsCertList TBSCertList,
signatureAlgorithm AlgorithmIdentifier,
signatureValue BIT STRING }

Fields Summary
TBSCertList
tbsCertList
AlgorithmIdentifier
sigAlgId
org.bouncycastle.asn1.DERBitString
sig
Constructors Summary
public CertificateList(org.bouncycastle.asn1.ASN1Sequence seq)

        if (seq.size() == 3)
        {
            tbsCertList = TBSCertList.getInstance(seq.getObjectAt(0));
            sigAlgId = AlgorithmIdentifier.getInstance(seq.getObjectAt(1));
            sig = DERBitString.getInstance(seq.getObjectAt(2));
        }
        else
        {
            throw new IllegalArgumentException("sequence wrong size for CertificateList");
        }
    
Methods Summary
public static org.bouncycastle.asn1.x509.CertificateListgetInstance(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean explicit)

        return getInstance(ASN1Sequence.getInstance(obj, explicit));
    
public static org.bouncycastle.asn1.x509.CertificateListgetInstance(java.lang.Object obj)

        if (obj instanceof CertificateList)
        {
            return (CertificateList)obj;
        }
        else if (obj instanceof ASN1Sequence)
        {
            return new CertificateList((ASN1Sequence)obj);
        }

        throw new IllegalArgumentException("unknown object in factory");
    
public X509NamegetIssuer()

        return tbsCertList.getIssuer();
    
public TimegetNextUpdate()

        return tbsCertList.getNextUpdate();
    
public TBSCertList.CRLEntry[]getRevokedCertificates()

        return tbsCertList.getRevokedCertificates();
    
public org.bouncycastle.asn1.DERBitStringgetSignature()

        return sig;
    
public AlgorithmIdentifiergetSignatureAlgorithm()

        return sigAlgId;
    
public TBSCertListgetTBSCertList()

        return tbsCertList;
    
public TimegetThisUpdate()

        return tbsCertList.getThisUpdate();
    
public intgetVersion()

        return tbsCertList.getVersion();
    
public org.bouncycastle.asn1.DERObjecttoASN1Object()

        ASN1EncodableVector v = new ASN1EncodableVector();

        v.add(tbsCertList);
        v.add(sigAlgId);
        v.add(sig);

        return new DERSequence(v);