class XMLSecEnc
Constants
TEMPLATE |
|
ELEMENT |
|
CONTENT |
|
URI |
|
XMLENCNS |
|
Properties
null|string | $type | |||
null|DOMElement | $encKey |
Methods
encryptNode(XMLSecurityKey $objKey, bool $replace = true)
Encrypt the selected node with the given key.
string|DOMElement
encryptKey(XMLSecurityKey $srcKey, XMLSecurityKey $rawKey, bool $append = true)
Encrypt the XMLSecurityKey
static null|XMLSecurityKey
staticLocateKeyInfo(null|XMLSecurityKey $objBaseKey = null, null|DOMNode $node = null)
No description
null|XMLSecurityKey
Details
at line 39
__construct()
at line 56
addReference(string $name, DOMNode $node, string $type)
at line 74
setNode(DOMNode $node)
at line 88
DOMElement
encryptNode(XMLSecurityKey $objKey, bool $replace = true)
Encrypt the selected node with the given key.
at line 156
encryptReferences(XMLSecurityKey $objKey)
at line 183
string|null
getCipherValue()
Retrieve the CipherValue text from this encrypted node.
at line 218
string|DOMElement
decryptNode(XMLSecurityKey $objKey, boolean $replace = true)
Decrypt this encrypted node.
The behaviour of this function depends on the value of $replace. If $replace is false, we will return the decrypted data as a string. If $replace is true, we will insert the decrypted element(s) into the document, and return the decrypted element(s).
at line 268
encryptKey(XMLSecurityKey $srcKey, XMLSecurityKey $rawKey, bool $append = true)
Encrypt the XMLSecurityKey
at line 306
DOMElement|string
decryptKey(XMLSecurityKey $encKey)
at line 321
DOMNode|null
locateEncryptedData(DOMDocument $element)
at line 342
null|XMLSecurityKey
locateKey(null|DOMNode $node = null)
Returns the key from the DOM