GetNecessaryACAttributes() public method

public GetNecessaryACAttributes ( ) : ISet
return ISet
 internal static void AdditionalChecks(IX509AttributeCertificate attrCert, PkixParameters pkixParams)
 {
     foreach (string text in pkixParams.GetProhibitedACAttributes())
     {
         if (attrCert.GetAttributes(text) != null)
         {
             throw new PkixCertPathValidatorException("Attribute certificate contains prohibited attribute: " + text + ".");
         }
     }
     foreach (string text2 in pkixParams.GetNecessaryACAttributes())
     {
         if (attrCert.GetAttributes(text2) == null)
         {
             throw new PkixCertPathValidatorException("Attribute certificate does not contain necessary attribute: " + text2 + ".");
         }
     }
 }
 internal static void AdditionalChecks(IX509AttributeCertificate attrCert, PkixParameters pkixParams)
 {
     global::System.Collections.IEnumerator enumerator = ((global::System.Collections.IEnumerable)pkixParams.GetProhibitedACAttributes()).GetEnumerator();
     try
     {
         while (enumerator.MoveNext())
         {
             string text = (string)enumerator.get_Current();
             if (attrCert.GetAttributes(text) != null)
             {
                 throw new PkixCertPathValidatorException("Attribute certificate contains prohibited attribute: " + text + ".");
             }
         }
     }
     finally
     {
         global::System.IDisposable disposable = enumerator as global::System.IDisposable;
         if (disposable != null)
         {
             disposable.Dispose();
         }
     }
     enumerator = ((global::System.Collections.IEnumerable)pkixParams.GetNecessaryACAttributes()).GetEnumerator();
     try
     {
         while (enumerator.MoveNext())
         {
             string text2 = (string)enumerator.get_Current();
             if (attrCert.GetAttributes(text2) == null)
             {
                 throw new PkixCertPathValidatorException("Attribute certificate does not contain necessary attribute: " + text2 + ".");
             }
         }
     }
     finally
     {
         global::System.IDisposable disposable2 = enumerator as global::System.IDisposable;
         if (disposable2 != null)
         {
             disposable2.Dispose();
         }
     }
 }
        internal static void AdditionalChecks(
			IX509AttributeCertificate	attrCert,
			PkixParameters				pkixParams)
        {
            // 1
            foreach (string oid in pkixParams.GetProhibitedACAttributes())
            {
                if (attrCert.GetAttributes(oid) != null)
                {
                    throw new PkixCertPathValidatorException(
                        "Attribute certificate contains prohibited attribute: "
                            + oid + ".");
                }
            }
            foreach (string oid in pkixParams.GetNecessaryACAttributes())
            {
                if (attrCert.GetAttributes(oid) == null)
                {
                    throw new PkixCertPathValidatorException(
                        "Attribute certificate does not contain necessary attribute: "
                            + oid + ".");
                }
            }
        }