|
|
|
|
- Properties specific to xmlSignatureVerification variables
xmlSignatureVerification (Variable type) In french: xmlVérificationSignature
The xmlSignatureVerification type is used to define the information required to verify an XML signature. This information can be defined and changed using different WLanguage properties. Remark: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
myVerification is xmlSignatureVerification
myVerification.Key = "mypublickey.pem"
myXMLDoc is xmlDocument = XMLOpen("filetoverify.xml", XMLKeepEmptyTextNode)
IF NOT XMLVerifySignature(myVerification, myXMLDoc.Root.SignNode) THEN
Error("Invalid signature")
ELSE
Info("Ok")
END
Properties Properties specific to xmlSignatureVerification variables The following properties can be used to handle xmlSignatureVerification variables: | | | Property name | Type used | Effect |
---|
Key | | Certificate or public key file used for the signature. If this property corresponds to a file, the KeyFileType property must be specified. | KeyFileType | Integer constant | If the Key property corresponds to a file, the KeyFileType property is used to define the type of file encoding: - tfcBinary: binary encoding.
- tfcDER: DER encoding (Distinguished Encoding Rule).
- tfcPEM: PEM encoding.
- tfcPKCS12: PKCS12 encoding.
- tfcPKCS8DER: PKCS8 DER encoding.
- tfcPKCS8PEM: PKCS8 PEM encoding.
|
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|