xml.Encryption methods
Methods for the xml.Encryption
class.
Name | Description |
---|---|
|
Constructor of an Encryption object. |
Name | Description |
---|---|
|
Decrypts an encrypted string encoded in BASE64, using the specified symmetric key, and returns the string in clear text. |
|
Encrypts the specified string using the symmetric key, and returns the encrypted string encoded in BASE64. |
|
Decrypts the BASE64 encrypted string using the RSA key and returns it in clear text |
|
Encrypts the specified string using the RSA key and returns it encoded in BASE64. |
The methods listed in Table 2 do not belong to the XML encryption specification, but are helper functions to allow BDL application to encrypt and decrypt short passwords with RSA keys, or big strings by using symmetric keys. Notice that a common way to encrypt data is to use symmetric keys, and to use RSA keys to encrypt the symmetric key value.
Name | Description |
---|---|
|
Get a copy of the embedded symmetric key that was used in the last decryption operation. |
|
Assigns a copy of the X509 certificate to this encryption object. |
|
Assigns a copy of the symmetric key to this encryption object. |
|
Assigns a copy of the key-encryption key to this encryption object. |
Name | Description |
---|---|
|
Decrypts the encrypted data DomNode using the symmetric key. |
|
Decrypts the encrypted data DomNode using the symmetric key. |
|
Encrypts the element DomNode and all its children using the symmetric key. |
|
Encrypts all child nodes of the element DomNode using the symmetric key. |
Name | Description |
---|---|
|
Decrypts the specified encrypted data DomNode using the symmetric
key, and returns it in a new element xml.DomNode . |
|
Decrypts the encrypted data DomNode using the symmetric key, and
returns all its children in one new document fragment type
xml.DomNode . |
|
Encrypts the element DomNode and all its children using the symmetric key, and returns them as one new encrypted-data node. |
|
Encrypts all child nodes of the element DomNode using the symmetric key, and returns them as one new encrypted-data node. |
Name | Description |
---|---|
|
Decrypts the EncryptedKey as root in the given XML document, and returns a new CryptoKey of the given kind. |
|
Encrypts the given symmetric or HMAC key as an encrypted-key node and returns it as root node of a new XML document. |