Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.bouncycastle.asn1.esf;
 
 
 CRLListID ::= SEQUENCE {
     crls SEQUENCE OF CrlValidatedID }
 
public class CrlListID
    extends ASN1Object
    private ASN1Sequence crls;
    public static CrlListID getInstance(Object obj)
    {
        if (obj instanceof CrlListID)
        {
            return (CrlListID)obj;
        }
        else if (obj != null)
        {
            return new CrlListID(ASN1Sequence.getInstance(obj));
        }
        return null;
    }
    private CrlListID(ASN1Sequence seq)
    {
        this. = (ASN1Sequence)seq.getObjectAt(0);
        Enumeration e = this..getObjects();
        while (e.hasMoreElements())
        {
            CrlValidatedID.getInstance(e.nextElement());
        }
    }
    public CrlListID(CrlValidatedID[] crls)
    {
        this. = new DERSequence(crls);
    }
    public CrlValidatedID[] getCrls()
    {
        CrlValidatedID[] result = new CrlValidatedID[this..size()];
        for (int idx = 0; idx < result.lengthidx++)
        {
            result[idx] = CrlValidatedID
                .getInstance(this..getObjectAt(idx));
        }
        return result;
    }
    public ASN1Primitive toASN1Primitive()
    {
        return new DERSequence(this.);
    }
New to GrepCode? Check out our FAQ X