Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.bouncycastle.asn1.cmp;
 
 
 public class ProtectedPart
    extends ASN1Object
    private PKIHeader header;
    private PKIBody body;
    private ProtectedPart(ASN1Sequence seq)
    {
         = PKIHeader.getInstance(seq.getObjectAt(0));
         = PKIBody.getInstance(seq.getObjectAt(1));
    }
    public static ProtectedPart getInstance(Object o)
    {
        if (o instanceof ProtectedPart)
        {
            return (ProtectedPart)o;
        }
        if (o != null)
        {
            return new ProtectedPart(ASN1Sequence.getInstance(o));
        }
        return null;
    }
    public ProtectedPart(PKIHeader headerPKIBody body)
    {
        this. = header;
        this. = body;
    }
    public PKIHeader getHeader()
    {
        return ;
    }
    public PKIBody getBody()
    {
        return ;
    }

    
 ProtectedPart ::= SEQUENCE {
                    header    PKIHeader,
                    body      PKIBody
 }
 

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