xml.KeyStore.AddKey

Registers the given key by name to the application. It is used for XML signature verification or XML decryption when a key name was specified in the XML KeyInfo node and no other key was set in the Signature or Encryption object.

Syntax

xml.KeyStore.AddKey( 
   key xml.CryptoX509 )
  1. key is the key object xml.CryptoX509 to add to the keystore.

Usage

Registers the given key by name to the application. It is used for XML signature verification or XML decryption when a key name was specified in the XML KeyInfo node and no other key was set in the Signature or Encryption object.

The CryptoKey must have the KeyName feature set, and the name must be unique in the application.

In case of error, the method throws an exception and sets the STATUS variable. Depending on the error, a human-readable description of the problem is available in the SQLCA.SQLERRM register. See Error handling in GWS calls (STATUS).