Пример #1
0
        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);
        }
Пример #2
0
 public bool HasKeyPurposeId(
     KeyPurposeID keyPurposeId)
 {
     return(usageTable.Contains(keyPurposeId));
 }