this.revocationTime = revocationTime; this.revocationReason = revocationReason;
this.revocationTime = (DERGeneralizedTime)seq.getObjectAt(0); if (seq.size() > 1) { this.revocationReason = new CRLReason(DEREnumerated.getInstance( (ASN1TaggedObject)seq.getObjectAt(1), true)); }
return getInstance(ASN1Sequence.getInstance(obj, explicit));
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");
return revocationReason;
return revocationTime;
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);
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);