Start line:  
End line:  

Snippet Preview

Snippet HTML Code

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