Exemple #1
0
 void m_initialize(X509CertificatePolicyCollection policies, Boolean critical)
 {
     Oid      = _oid;
     Policies = policies;
     Critical = critical;
     RawData  = Policies.Encode();
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <strong>X509CertificatePoliciesExtension</strong> class from an array of certificate
 /// policies and a value that identifies whether the extension is critical.
 /// </summary>
 /// <param name="policies">An array of certificate policies.</param>
 /// <param name="critical"><strong>True</strong> if the extension is critical; otherwise, <strong>False</strong>.</param>
 /// <exception cref="ArgumentNullException"><strong>polcies</strong> parameter is either null or empty.</exception>
 public X509CertificatePoliciesExtension(X509CertificatePolicyCollection policies, Boolean critical)
 {
     if (policies == null || policies.Count == 0)
     {
         throw new ArgumentNullException(nameof(policies));
     }
     m_initialize(policies, critical);
 }
 internal X509CertificatePolicyCollectionEnumerator(X509CertificatePolicyCollection entries)
 {
     _entries  = entries;
     m_current = -1;
 }
Exemple #4
0
 void m_decode(Byte[] rawData)
 {
     Policies = new X509CertificatePolicyCollection();
     Policies.Decode(rawData);
 }