ICertEncodeCRLDistInfo interface (certenc.h)
The ICertEncodeCRLDistInfo interface provides methods for handling certificate revocation list (CRL) distribution information arrays used in certificate extensions.
A certificate extension can be created by using a CRL distribution information array stored in an extension handler COM object instantiated by the policy module. Each element in the array is a CRL distribution point structure that contains an array of names and name choices. This interface is useful for encoding and decoding szOID_CRL_DIST_POINTS "2.5.29.31" extensions; the SDK sample policy module uses this interface.
ICertEncodeCRLDistInfo is defined in Certenc.h. When you create your program, however, use Certsrv.h as the include file. Certenc.dll provides the ICertEncodeCRLDistInfo interface. The type information for this interface is also in Certencl.dll, which is shipped with the Platform Software Development Kit (SDK).
Certificate Services interfaces support both apartment-threading and free-threading models. For better throughput, free threading is recommended.
Inheritance
The ICertEncodeCRLDistInfo interface inherits from the IDispatch interface. ICertEncodeCRLDistInfo also has these types of members:
Methods
The ICertEncodeCRLDistInfo interface has these methods.
ICertEncodeCRLDistInfo::Decode Decodes an Abstract Syntax Notation One (ASN.1)-encoded certificate revocation list (CRL) distribution information extension and stores the resulting array in the COM object. |
ICertEncodeCRLDistInfo::Encode Performs Abstract Syntax Notation One (ASN.1) encoding on a certificate revocation list (CRL) distribution information array stored in the COM object and returns the ASN.1-encoded extension. |
ICertEncodeCRLDistInfo::GetDistPointCount Returns the number of certificate revocation list (CRL) distribution points in a CRL distribution information array. |
ICertEncodeCRLDistInfo::GetName Returns the name at a specified index of a certificate revocation list (CRL) distribution information point. |
ICertEncodeCRLDistInfo::GetNameChoice Returns the name choice at a specified index of a certificate revocation list (CRL) distribution information point. |
ICertEncodeCRLDistInfo::GetNameCount Returns the number of names in a certificate revocation list (CRL) distribution point. |
ICertEncodeCRLDistInfo::Reset Resets a certificate revocation list (CRL) distribution information array to a specified number of distribution point structures. |
ICertEncodeCRLDistInfo::SetNameCount Sets a name count for the specified distribution point in a certificate revocation list (CRL) distribution information array. |
ICertEncodeCRLDistInfo::SetNameEntry Sets a name at a specified index of a distribution point in a certificate revocation list (CRL) distribution information 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) |