Beispiel #1
0
 /// <summary>
 /// ADCertificationAuthority Constructor 1
 /// </summary>
 /// <param name="name">The common name of the CA</param>
 public ADCertificationAuthority(string name)
     : base(LdapUrls.EnrollmentService(name), ObjectClass.PKIEnrollmentService)
 {
     if (!Usable)
     {
         throw new CertificationAuthorityNotFoundException(name);
     }
     SetFieldsFromDirectoryObject();
 }
Beispiel #2
0
 /// <summary>
 /// ADCertificateTemplate Constructor 1
 /// </summary>
 /// <param name="name">The Name attribute of the certificate template as indicated in Active Directory</param>
 public ADCertificateTemplate(string name)
     : base(LdapUrls.CertificateTemplate(name), ObjectClass.PKICertificateTemplate)
 {
     if (!Usable)
     {
         throw new CertificateTemplateNotFoundException(name);
     }
     SetFieldsFromDirectoryObject();
     GetAccessRules();
 }