The KeyStore class / xml.KeyStore methods |
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.
xml.KeyStore.AddKey( key xml.CryptoX509 )
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 with the appropriate error number.