Click or drag to resize

CertificateTemplate Class

Represents a certificate template object.
Inheritance Hierarchy
SystemObject
  PKI.CertificateTemplatesCertificateTemplate

Namespace:  PKI.CertificateTemplates
Assembly:  SysadminsLV.PKI (in SysadminsLV.PKI.dll) Version: 3.7.0.0 (3.7.0.0)
Syntax
public class CertificateTemplate

The CertificateTemplate type exposes the following members.

Constructors
  NameDescription
Public methodCertificateTemplate(String)
Initializes a new instance of the CertificateTemplate class
Public methodCertificateTemplate(String, String)
Initializes a new instance of the CertificateTemplate class
Top
Properties
  NameDescription
Public propertyAutoenrollmentAllowed
This flag indicates whether clients can perform autoenrollment for the specified template.
Public propertyDisplayName
Gets certificate template display name. Display name has no character restrictions.
Public propertyDistinguishedName
Gets certificate template's full distinguished name (location address) in Active Directory.
Public propertyLastWriteTime
Gets the timestamp when certificate template was edited last time. The value can be used for audit purposes.
Public propertyName
Gets certificate template common name. Common names cannot contain the following characters: " + , ; < = >
Public propertyOID
Gets certificate template's object identifier. Object identifiers are used to uniquely identify certificate template. While certificate template common and display names can be changed, OID remains the same. Once template is deleted from Active Directory, associated OID is removed too. Any new template (even if with the same name values) will have differen OID value.
Public propertySchemaVersion
Gets certificate template schema version (also known as template version). The value can be either 1, 2, 3 or 4. For template support by CA version see SupportedCA property description.
Public propertySettings
Gets or sets certificate template extended settings.
Public propertySupportedCA
Gets the minimum version of the Certification Authority that can use this template to issue certificates. The following table describes template support by CA version:
Schema versionSupported CA versions
1
  • Windows 2000 Server
  • Windows Server 2003 Standard, Enterprise, Datacenter editions
  • Windows Server 2008 Standard, Enterprise, Datacenter editions
  • Windows Server 2008 R2 Standard, Enterprise, Datacenter editions
  • Windows Server 2012 Foundation, Essentials, Standard, Datacenter editions
2
  • Windows Server 2003 Enterprise, Datacenter editions
  • Windows Server 2008 Enterprise, Datacenter editions
  • Windows Server 2008 R2 Standard, Enterprise, Datacenter editions
  • Windows Server 2012 Foundation, Essentials, Standard, Datacenter editions
3
  • Windows Server 2008 Enterprise, Datacenter editions
  • Windows Server 2008 R2 Standard, Enterprise, Datacenter editions
  • Windows Server 2012 Foundation, Essentials, Standard, Datacenter editions
4
  • Windows Server 2012 Foundation, Essentials, Standard, Datacenter editions
Public propertyVersion
Gets certificate template internal version. The version consist of two values separated by dot: major version and minor version. Any template changes causes internal version change.
Top
Methods
  NameDescription
Public methodStatic memberEnumTemplates
Enumerates certificate templates registered in Active Directory.
Public methodEquals(Object)
Compares two CertificateTemplate objects for equality.
(Overrides ObjectEquals(Object).)
Protected methodEquals(CertificateTemplate)
Compares two CertificateTemplate objects for equality.
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFormat
Gets certificate template textual representation.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Overrides ObjectGetHashCode.)
Public methodGetSecurityDescriptor
Gets access control list (security descriptor) of the current certificate template.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also