Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.bouncycastle.asn1.ocsp;
 
public class RevokedInfo
    extends ASN1Object
    private CRLReason           revocationReason;
    public RevokedInfo(
        ASN1GeneralizedTime  revocationTime,
        CRLReason           revocationReason)
    {
        this. = revocationTime;
        this. = revocationReason;
    }
    private RevokedInfo(
        ASN1Sequence    seq)
    {
        this. = ASN1GeneralizedTime.getInstance(seq.getObjectAt(0));
        if (seq.size() > 1)
        {
            this. = CRLReason.getInstance(ASN1Enumerated.getInstance(
                (ASN1TaggedObject)seq.getObjectAt(1), true));
        }
    }
    public static RevokedInfo getInstance(
        ASN1TaggedObject obj,
        boolean          explicit)
    {
        return getInstance(ASN1Sequence.getInstance(objexplicit));
    }
    public static RevokedInfo getInstance(
        Object  obj)
    {
        if (obj instanceof RevokedInfo)
        {
            return (RevokedInfo)obj;
        }
        else if (obj != null)
        {
            return new RevokedInfo(ASN1Sequence.getInstance(obj));
        }
        return null;
    }
    {
        return ;
    }
    public CRLReason getRevocationReason()
    {
        return ;
    }

    
Produce an object suitable for an ASN1OutputStream.
 RevokedInfo ::= SEQUENCE {
      revocationTime              GeneralizedTime,
      revocationReason    [0]     EXPLICIT CRLReason 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