dxX509IsUsableForDigitalSignature(TdxX509Certificate) Method
In This Article
Identifies if it is possible to use a specified X.509 certificate to sign documents.
#Declaration
Delphi
function dxX509IsUsableForDigitalSignature(ACertificate: TdxX509Certificate): Boolean;
#Parameters
Name | Type | Description |
---|---|---|
ACertificate | Tdx |
An X. |
#Returns
Type | Description |
---|---|
Boolean | True, if it is possible to use an X. |
#Remarks
Call this global function and pass a target certificate as the ACertificate parameter to identify if you can use the certificate to sign documents. The dxX509IsUsableForDigitalSignature function returns True only if the following conditions are met:
The specified certificate has a private key.
The certificate’s KeyUsage property value includes the kufDigitalSignature flag.
Otherwise, the dxX509IsUsableForDigitalSignature function returns False.
See Also