The ICertServerPolicy interface is exported by the Server Engine and is called by the policy module. It allows the policy module to get and enumerate elements of requests and certificates, to get and set certificate extensions, and to set certain certificate properties.
From the time the VerifyRequest method is called until it returns, the unresolved request and certificate under construction can be accessed through a Context data object. Because the policy module can add to or override request properties by calling SetCertificateProperty, certificate properties can differ from request properties.
The strPropertyName parameter used by all of these methods must be a property name string as described in the following section on property names.
Only those properties passed to ICertRequest as part of the named attribute string parameter or the PKCS #10 certificate request can be accessed through this method. Examples of named attributes include "RequestAttributes.Type", "RequestAttributes.Version", or other arbitrarily named properties created by a site administrator to communicate site-specific information from the request generator to the policy module. Examples of PKCS #10 property names include those beginning with the Subject, PublicKey, and Signature prefixes.
The following methods are provided by the ICertServerPolicy interface.
|Returns the OID of the current attribute within the certificate to be published.
|Frees any resources connected with attribute enumeration.
|Initializes the internal enumeration pointer to the first attribute within the certificate to be issued.
|Returns the OID of the current extension within the certificate to be published.
|Frees any resources connected with extension enumeration.
|Initializes the internal enumeration pointer to the first extension within the certificate to be issued.
|Gets a specified certificate extension.
|Gets the flags from the extension acquired by the most recent call to GetCertificateExtension.
|Returns a named property from a certificate.
|Returns a named attribute from a request.
|Returns a named property from a request.
|Adds a new extension to the certificate to be issued.
|Causes the Server Engine to add a named property to a certificate.
|Sets the current instantiation of the interface to operate on the specified request.