private OtherCertID(Asn1Sequence seq) { if (seq == null) { throw new ArgumentNullException("seq"); } if (seq.Count < 1 || seq.Count > 2) { throw new ArgumentException("Bad sequence size: " + seq.Count, "seq"); } otherCertHash = OtherHash.GetInstance(seq[0].ToAsn1Object()); if (seq.Count > 1) { issuerSerial = IssuerSerial.GetInstance(seq[1].ToAsn1Object()); } }
private CrlValidatedID(Asn1Sequence seq) { if (seq == null) { throw new ArgumentNullException("seq"); } if (seq.Count < 1 || seq.Count > 2) { throw new ArgumentException("Bad sequence size: " + seq.Count, "seq"); } crlHash = OtherHash.GetInstance(seq[0].ToAsn1Object()); if (seq.Count > 1) { crlIdentifier = CrlIdentifier.GetInstance(seq[1].ToAsn1Object()); } }
private OcspResponsesID(Asn1Sequence seq) { if (seq == null) { throw new ArgumentNullException("seq"); } if (seq.Count < 1 || seq.Count > 2) { throw new ArgumentException("Bad sequence size: " + seq.Count, "seq"); } ocspIdentifier = OcspIdentifier.GetInstance(seq[0].ToAsn1Object()); if (seq.Count > 1) { ocspRepHash = OtherHash.GetInstance(seq[1].ToAsn1Object()); } }