Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.bouncycastle.asn1.ocsp;
 
public class ResponseBytes
    extends ASN1Object
    ASN1OctetString        response;
    public ResponseBytes(
        ASN1ObjectIdentifier responseType,
        ASN1OctetString     response)
    {
        this. = responseType;
        this. = response;
    }
    public ResponseBytes(
        ASN1Sequence    seq)
    {
         = (ASN1ObjectIdentifier)seq.getObjectAt(0);
         = (ASN1OctetString)seq.getObjectAt(1);
    }
    public static ResponseBytes getInstance(
        ASN1TaggedObject obj,
        boolean          explicit)
    {
        return getInstance(ASN1Sequence.getInstance(objexplicit));
    }
    public static ResponseBytes getInstance(
        Object  obj)
    {
        if (obj == null || obj instanceof ResponseBytes)
        {
            return (ResponseBytes)obj;
        }
        else if (obj instanceof ASN1Sequence)
        {
            return new ResponseBytes((ASN1Sequence)obj);
        }
        throw new IllegalArgumentException("unknown object in factory: " + obj.getClass().getName());
    }
    {
        return ;
    }
    public ASN1OctetString getResponse()
    {
        return ;
    }

    
Produce an object suitable for an ASN1OutputStream.
 ResponseBytes ::=       SEQUENCE {
     responseType   OBJECT IDENTIFIER,
     response       OCTET STRING }
 
    public ASN1Primitive toASN1Primitive()
    {
        ASN1EncodableVector    v = new ASN1EncodableVector();
        v.add();
        v.add();
        return new DERSequence(v);
    }
New to GrepCode? Check out our FAQ X