public ExtendedKeyUsage( IEnumerable usages) { Asn1EncodableVector v = new Asn1EncodableVector(); foreach (object usage in usages) { Asn1Encodable o = KeyPurposeID.GetInstance(usage); v.Add(o); this.usageTable[o] = o; } this.seq = new DerSequence(v); }
public bool HasKeyPurposeId( KeyPurposeID keyPurposeId) { return(usageTable.Contains(keyPurposeId)); }