FileDocCategorySizeDatePackage
RevokedInfo.javaAPI DocAndroid 1.5 API2525Wed May 06 22:41:06 BST 2009org.bouncycastle.asn1.ocsp

RevokedInfo

public class RevokedInfo extends org.bouncycastle.asn1.ASN1Encodable

Fields Summary
private org.bouncycastle.asn1.DERGeneralizedTime
revocationTime
private org.bouncycastle.asn1.x509.CRLReason
revocationReason
Constructors Summary
public RevokedInfo(org.bouncycastle.asn1.DERGeneralizedTime revocationTime, org.bouncycastle.asn1.x509.CRLReason revocationReason)

        this.revocationTime = revocationTime;
        this.revocationReason = revocationReason;
    
public RevokedInfo(org.bouncycastle.asn1.ASN1Sequence seq)

        this.revocationTime = (DERGeneralizedTime)seq.getObjectAt(0);

        if (seq.size() > 1)
        {
            this.revocationReason = new CRLReason(DEREnumerated.getInstance(
                                (ASN1TaggedObject)seq.getObjectAt(1), true));
        }
    
Methods Summary
public static org.bouncycastle.asn1.ocsp.RevokedInfogetInstance(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean explicit)

        return getInstance(ASN1Sequence.getInstance(obj, explicit));
    
public static org.bouncycastle.asn1.ocsp.RevokedInfogetInstance(java.lang.Object obj)

        if (obj == null || obj instanceof RevokedInfo)
        {
            return (RevokedInfo)obj;
        }
        else if (obj instanceof ASN1Sequence)
        {
            return new RevokedInfo((ASN1Sequence)obj);
        }

        throw new IllegalArgumentException("unknown object in factory");
    
public org.bouncycastle.asn1.x509.CRLReasongetRevocationReason()

        return revocationReason;
    
public org.bouncycastle.asn1.DERGeneralizedTimegetRevocationTime()

        return revocationTime;
    
public org.bouncycastle.asn1.DERObjecttoASN1Object()
Produce an object suitable for an ASN1OutputStream.
RevokedInfo ::= SEQUENCE {
revocationTime GeneralizedTime,
revocationReason [0] EXPLICIT CRLReason OPTIONAL }

        ASN1EncodableVector v = new ASN1EncodableVector();

        v.add(revocationTime);
        if (revocationReason != null)
        {
            v.add(new DERTaggedObject(true, 0, revocationReason));
        }

        return new DERSequence(v);