public CertStatus(Asn1TaggedObject choice) { tagNo = choice.TagNo; switch (choice.TagNo) { case 1: value = RevokedInfo.GetInstance(choice, explicitly: false); break; case 0: case 2: value = DerNull.Instance; break; } }
public CertStatus(Asn1TaggedObject choice) { this.tagNo = choice.TagNo; switch (choice.TagNo) { case 0: case 2: this.value = DerNull.Instance; return; case 1: this.value = RevokedInfo.GetInstance(choice, false); return; default: return; } }
public CertStatus( Asn1TaggedObject choice) { this.tagNo = choice.TagNo; switch (choice.TagNo) { case 1: value = RevokedInfo.GetInstance(choice, false); break; case 0: case 2: value = DerNull.Instance; break; default: throw new ArgumentException("Unknown tag encountered: " + choice.TagNo); } }
public static RevokedInfo GetInstance(Asn1TaggedObject obj, bool explicitly) { return(RevokedInfo.GetInstance(Asn1Sequence.GetInstance(obj, explicitly))); }