The GetCertificateExtension method gets a specified certificate extension. Note that certificate extensions are distinct from certificate properties. Properties are generic data attached to the request object. Some of these properties are encoded into the certificate (example: BeginDate), while others are just used to mark requests in the queue and log. Extensions are always encoded into the certificate, are always marked with an object ID, and always have a critical/non-critical flag.
[VB] VARIANT GetCertificateExtension( BSTR strExtensionName, long Type ); [JAVA] com.ms.Variant GetCertificateExtension( java.lang.String strExtensionName, int Type ); [C++] HRESULT GetCertificateExtension( BSTR const strExtensionName, // in LONG Type, // in VARIANT * pvarValue // out, return value );
[VB][JAVA][C++] Type
Specifies the type of the extension. The type can be one of the following types.
Type | Description |
PROPTYPE_LONG | Signed long data |
PROPTYPE_DATE | Date / Time |
PROPTYPE_BINARY | Binary data |
PROPTYPE_STRING | String data |
Returns the requested extension value.