CryptoSignXML data type

Official Content
This documentation is valid for:

CryptoSignXML belong to the Cryptography data types. It enables us to handle digital signatures for XML documents with a public-private key according to the XMLDSIG standard, using X509 certificates.

CryptoSignXML Methods

Name Description
Sign(text:String):String Returns the XML signature resulting from the application of the signature algorithm using the specified certificate on the XML text entered. This is called XML Signature.
SignElements(text:String,Xpath:String):String  Returns the XML signature resulting from the application of the signature algorithm using the specified certificate on the XML text entered. The signature is applied to each element verified by the xPath , which is used as element selector.
Verify(signatre:String) In the case of a signed XML, it verifies the match of the signature and the text, using the data from the certificate configured. When the certificate is not indicated, it is inferred from the signature Tag of the signature.
AddReference(xmlNode:String) The signature is calculated from the string specified by the parameter. The parameter should be an XML node.

Properties

KeyInfoClauses:StringCollection  Allows us to add information to the signature. By default, the signature contains X509IssuerSerial, X509SubjectName, X509Certificate. Another supported value for KeyInfoClauses is RSAKeyValue. Eg: &CryptoSignXML.KeyInfoClauses.Add('RSAKeyValue')
Certificate:CryptoCertificate Allows us to specify the certificate to be used in signing the text.
ValidateCertificate:Boolean Specifies if the validity of the certificate specified in the Create method must be validated or not.

Notes

Scope

Platform  Web(.NET,Java)


Was this page helpful?
What Is This?
Your feedback about this content is important. Let us know what you think.