The ICertEncodeAltName interface provides methods for handling alternate names used in certificate extensions. A certificate extension can be created using an alternate name array stored in an extension handler COM object instantiated by the policy podule. Each element in the array is a structure containing a name string and a name choice string.
The following methods are provided by the ICertEncodeAltName interface.
Method | Description |
---|---|
Decode | Decodes an ASN encoded alternate name array and stores the resulting array of strings in the COM object. |
Encode | Performs ASN encoding on an alternate name array stored in the COM object and returns the array of ASN encoded strings. |
GetName | Returns the alternate name at a specified index of an alternate name array. |
GetNameChoice | Returns a name choice at a specified index of an alternate name array. |
GetNameCount | Returns the count of names in an alternate name array. |
Reset | Resets an alternate name array to a specified number of elements and initializes the values. |
SetNameEntry | Sets a name and name choice at a specified index of an alternate name array. |