ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

New WINDEV, WEBDEV and WINDEV Mobile 2024 feature!
Help / WLanguage / WLanguage functions / Standard functions / XML file functions
  • Properties specific to xmlSignatureVerification variables
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
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.
The signature can then be verified using the XMLVerifySignature function..
Remark: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
Example
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 nameType usedEffect
KeyCertificate or public key file used for the signature. If this property corresponds to a file, the KeyFileType property must be specified.
KeyFileTypeInteger constantIf 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.
Minimum version required
  • Version 2024
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/08/2024

Send a report | Local help