IX509SignatureInformation::put_PublicKeyAlgorithm method (certenroll.h)

The PublicKeyAlgorithm property specifies and retrieves an object identifier (OID) for the public key algorithm used in the GetSignatureAlgorithm method.

This property is read/write.

Syntax

HRESULT put_PublicKeyAlgorithm(
  IObjectId *pValue
);

Parameters

pValue

Return value

None

Remarks

Unless you are retrieving a signature algorithm for a null-signed certificate request, you must set this property before calling the GetSignatureAlgorithm method. You must also set the HashAlgorithm property. You can also set the AlternateSignatureAlgorithm and NullSigned properties.

The PublicKeyAlgorithm property validates whether the OID you specify represents a public key algorithm. If the OID is valid, the property also clears the signature property cache.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header certenroll.h
DLL CertEnroll.dll

See also

IX509SignatureInformation