Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.bouncycastle.asn1.ocsp;
 
public class OCSPResponse
    extends ASN1Object
    ResponseBytes        responseBytes;
    public OCSPResponse(
        OCSPResponseStatus  responseStatus,
        ResponseBytes       responseBytes)
    {
        this. = responseStatus;
        this. = responseBytes;
    }
    private OCSPResponse(
        ASN1Sequence    seq)
    {
         = OCSPResponseStatus.getInstance(seq.getObjectAt(0));
        if (seq.size() == 2)
        {
             = ResponseBytes.getInstance(
                                (ASN1TaggedObject)seq.getObjectAt(1), true);
        }
    }
    public static OCSPResponse getInstance(
        ASN1TaggedObject obj,
        boolean          explicit)
    {
        return getInstance(ASN1Sequence.getInstance(objexplicit));
    }
    public static OCSPResponse getInstance(
        Object  obj)
    {
        if (obj instanceof OCSPResponse)
        {
            return (OCSPResponse)obj;
        }
        else if (obj != null)
        {
            return new OCSPResponse(ASN1Sequence.getInstance(obj));
        }
        return null;
    }
    {
        return ;
    }
    {
        return ;
    }

    
Produce an object suitable for an ASN1OutputStream.
 OCSPResponse ::= SEQUENCE {
     responseStatus         OCSPResponseStatus,
     responseBytes          [0] EXPLICIT ResponseBytes OPTIONAL }
 
    public ASN1Primitive toASN1Primitive()
    {
        ASN1EncodableVector    v = new ASN1EncodableVector();
        v.add();
        if ( != null)
        {
            v.add(new DERTaggedObject(true, 0, ));
        }
        return new DERSequence(v);
    }
New to GrepCode? Check out our FAQ X