ICertEncodeDateArray interface (certenc.h)

The ICertEncodeDateArray interface provides methods for handling Date arrays used in certificate extensions.

A certificate extension can be created by using a Date array stored in an extension handler COM object instantiated by the policy module. Each element in the array is a Date value.

This interface is provided mainly as a demonstration for encoding custom extensions. The Certificate Services sample programs in the Platform Software Development Kit (SDK) contain source code for this interface.

ICertEncodeDateArray is defined in Certenc.h. When you create your program, however, use Certsrv.h as the include file. Certenc.dll provides the ICertEncodeDateArray interface. The type information for this interface is also in Certencl.dll, which is shipped with the Platform SDK.

Certificate Services interfaces support both apartment-threading and free-threading models. For better throughput, free threading is recommended.

Inheritance

The ICertEncodeDateArray interface inherits from the IDispatch interface. ICertEncodeDateArray also has these types of members:

Methods

The ICertEncodeDateArray interface has these methods.

 
ICertEncodeDateArray::Decode

Decodes an Abstract Syntax Notation One (ASN.1)-encoded date array and stores the resulting array of date values in the CertEncodeDateArray object.
ICertEncodeDateArray::Encode

Returns an Abstract Syntax Notation One (ASN.1)-encoded string of the date array stored in this object.
ICertEncodeDateArray::GetCount

Returns the number of DATE values in the object's DATE array.
ICertEncodeDateArray::GetValue

Returns the specified date from the DATE array.
ICertEncodeDateArray::Reset

Specifies the size of DATE array in this object.
ICertEncodeDateArray::SetValue

Sets a DATE value at the specified index of the DATE array.

Requirements

Requirement Value
Minimum supported client None supported
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header certenc.h (include Certsrv.h)