Start line:  
End line:  

Snippet Preview

Snippet HTML Code

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