ICertServerPolicy::GetCertificateExtension

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
);
 

Parameters

[VB][JAVA][C++] strExtensionName
A string specifying the name of the extension.
[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

[C++] pvarValue
Points to the return value. See Return Value.

Return Values

Returns the requested extension value.

QuickInfo

  Windows NT: Requires version 5.0 or later (or version 4.0 with the Windows NT 4.0 Option Pack).
  Windows: Unsupported.
  Windows CE: Unsupported.
  Header: Declared in certif.h.
  Import Library: Use certidl.lib.