Realize the digital signature of a XML file. The signature is associed to the XML file .
1 crypt.dsig.sign
<crypt.dsig.sign encoding='encoding'>
<keyEntry /> !
</crypt.dsig.sign>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Aencoding | string | Indica la codificación de la cadena de caracteres a procesar, como por ejemplo ISO-8859-1 o UTF-8. Si no se especifica se utiliza el que haya definido en el fichero de configuración para el servidor. |
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
EkeyEntry | PrivateKeyEntry |
Returns | |
---|---|
Type | Description |
org.w3c.dom.Document |
Exceptions
requires 2 arguments
No se han especificado los parámetros de entrada.
Example
Copy
<xsql-script name='string_crypt_decryptsql_sample1'> <body> <file.chars.write> <file type='absolute' name='purchaseorder-signed.xml' /> <crypt.dsig.sign password='changeit' keystore='c:\Documents and Settings\user\.keystore' keyname='deister-webstudio' signature-method='DSA' > <!-- Load of the keys warehouse located in 'c:\Documents and Settings\user\.keystore' --> <!-- The key with 'changeit' password obtains the access with 'mypass' password. --> <java.security.KeyStore.getEntry name='deister-webstudio' password='mypass'> <java.security.KeyStore.load password='changeit' > <java.security.KeyStore.getInstance type='JKS'/> <file type='absolute' name='c:\Documents and Settings\user\.keystore' /> </java.security.KeyStore.load> </java.security.KeyStore.getEntry> <file type='absolute' name='purchaseorder.xml' /> </crypt.dsig.sign> </file.chars.write> </body> </xsql-script>