xml.KeyStore.AddKey
Registers in the keystore the given key by name for the application.
Syntax
xml.KeyStore.AddKey(
global xml.CryptoX509 )
- global defines the key object
xml.CryptoX509
to add to the keystore.
Usage
This method adds a key to the keystore to be used for XML signature verification or XML
decryption when a key name has been specified in the XML KeyInfo node and no
other key has been 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).