Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.bouncycastle.asn1.esf;
 
 OcspIdentifier ::= SEQUENCE {
     ocspResponderID ResponderID, -- As in OCSP response data
     producedAt GeneralizedTime -- As in OCSP response data
 }
 
public class OcspIdentifier
    extends ASN1Object
    private ResponderID ocspResponderID;
    public static OcspIdentifier getInstance(Object obj)
    {
        if (obj instanceof OcspIdentifier)
        {
            return (OcspIdentifier)obj;
        }
        else if (obj != null)
        {
            return new OcspIdentifier(ASN1Sequence.getInstance(obj));
        }
        return null;
    }
    private OcspIdentifier(ASN1Sequence seq)
    {
        if (seq.size() != 2)
        {
            throw new IllegalArgumentException("Bad sequence size: "
                + seq.size());
        }
        this. = ResponderID.getInstance(seq.getObjectAt(0));
        this. = (ASN1GeneralizedTime)seq.getObjectAt(1);
    }
    public OcspIdentifier(ResponderID ocspResponderIDASN1GeneralizedTime producedAt)
    {
        this. = ocspResponderID;
        this. = producedAt;
    }
    {
        return this.;
    }
    {
        return this.;
    }
    public ASN1Primitive toASN1Primitive()
    {
        ASN1EncodableVector v = new ASN1EncodableVector();
        v.add(this.);
        v.add(this.);
        return new DERSequence(v);
    }
New to GrepCode? Check out our FAQ X