Export (0) Print
Expand All

ICertEncodeBitString interface

The ICertEncodeBitString interface provides methods for handling bit strings used in certificate extensions. A certificate extension can be created by using a bit string stored in an extension handler COM object instantiated by the policy module. The bit string can contain an arbitrary string of binary values. This interface is useful for encoding and decoding szOID_KEY_USAGE "2.5.29.15" extensions; the SDK sample policy module uses this interface.

ICertEncodeBitString is defined in Certenc.h. When you create your program, however, use Certsrv.h as the include file. Certenc.dll provides the ICertEncodeBitString 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.

Members

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

Methods

The ICertEncodeBitString interface has these methods.

MethodDescription
Decode

Decodes an Abstract Syntax Notation One (ASN.1)-encoded bit string and stores the resulting bit string in the COM object.

Encode

Performs ASN.1 encoding on a bit string and returns the ASN.1-encoded bit string.

GetBitCount

Returns the number of bits in a bit string.

GetBitString

Returns the bit string.

 

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Certenc.h (include Certsrv.h)

Library

Certidl.lib

DLL

Certenc.dll

IID

IID_ICertEncodeBitString is defined as 6db525be-1278-11d1-9bd4-00c04fb683fa

 

 

Community Additions

ADD
Show:
© 2014 Microsoft