Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.bouncycastle.asn1.crmf;
 
 
 public class CertReqMessages
    extends ASN1Object
    private ASN1Sequence content;
    private CertReqMessages(ASN1Sequence seq)
    {
         = seq;
    }
    public static CertReqMessages getInstance(Object o)
    {
        if (o instanceof CertReqMessages)
        {
            return (CertReqMessages)o;
        }
        if (o != null)
        {
            return new CertReqMessages(ASN1Sequence.getInstance(o));
        }
        return null;
    }
    public CertReqMessages(
        CertReqMsg msg)
    {
         = new DERSequence(msg);
    }
    public CertReqMessages(
        CertReqMsg[] msgs)
    {
        ASN1EncodableVector v = new ASN1EncodableVector();
        for (int i = 0; i < msgs.lengthi++)
        {
            v.add(msgs[i]);
        }
         = new DERSequence(v);
    }
    public CertReqMsg[] toCertReqMsgArray()
    {
        CertReqMsg[] result = new CertReqMsg[.size()];
        for (int i = 0; i != result.lengthi++)
        {
            result[i] = CertReqMsg.getInstance(.getObjectAt(i));
        }
        return result;
    }

    
 CertReqMessages ::= SEQUENCE SIZE (1..MAX) OF CertReqMsg
 

Returns:
a basic ASN.1 object representation.
    public ASN1Primitive toASN1Primitive()
    {
        return ;
    }
New to GrepCode? Check out our FAQ X