xml.KeyStore methods

Methods for the xml.KeyStore class.

Table 1. Class methods
Name Description
xml.KeyStore.AddTrustedCertificate(
   cert xml.CryptoX509 )
Registers the given X509 certificate as a trusted certificate for the application. It will be used for signature verification if no other certificate was set for that purpose.
xml.KeyStore.AddCertificate( 
   cert xml.CryptoX509 )
Registers the given X509 certificate as a certificate for the application. It will be used when an incomplete X509 certificate is detected during signature or encryption to complete the process by checking the certificate issuer name and serial number.
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.