PHP Класс XMLSecEnc

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$encKey
$type

Открытые методы

Метод Описание
__construct ( )
addReference ( $name, $node, $type )
decryptKey ( $encKey )
decryptNode ( $objKey, $replace = true ) : string | DOMElement Decrypt this encrypted node.
encryptKey ( $srcKey, $rawKey, $append = true )
encryptNode ( XMLSecurityKey $objKey, boolean $replace = true ) : DOMElement Encrypt the selected node with the given key.
encryptReferences ( $objKey )
getCipherValue ( ) : string | null Retrieve the CipherValue text from this encrypted node.
locateEncryptedData ( $element )
locateKey ( $node = null )
locateKeyInfo ( $objBaseKey = null, $node = null )
setNode ( $node )
staticLocateKeyInfo ( $objBaseKey = null, $node = null )

Приватные методы

Метод Описание
_resetTemplate ( )

Описание методов

__construct() публичный Метод

public __construct ( )

addReference() публичный Метод

public addReference ( $name, $node, $type )

decryptKey() публичный Метод

public decryptKey ( $encKey )

decryptNode() публичный Метод

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).
public decryptNode ( $objKey, $replace = true ) : string | DOMElement
Результат string | DOMElement The decrypted data.

encryptKey() публичный Метод

public encryptKey ( $srcKey, $rawKey, $append = true )

encryptNode() публичный Метод

Encrypt the selected node with the given key.
public encryptNode ( XMLSecurityKey $objKey, boolean $replace = true ) : DOMElement
$objKey XMLSecurityKey The encryption key and algorithm.
$replace boolean Whether the encrypted node should be replaced in the original tree. Default is true.
Результат DOMElement The -element.

encryptReferences() публичный Метод

public encryptReferences ( $objKey )

getCipherValue() публичный Метод

Retrieve the CipherValue text from this encrypted node.
public getCipherValue ( ) : string | null
Результат string | null The Ciphervalue text, or null if no CipherValue is found.

locateEncryptedData() публичный Метод

public locateEncryptedData ( $element )

locateKey() публичный Метод

public locateKey ( $node = null )

locateKeyInfo() публичный Метод

public locateKeyInfo ( $objBaseKey = null, $node = null )

setNode() публичный Метод

public setNode ( $node )

staticLocateKeyInfo() статический публичный Метод

static public staticLocateKeyInfo ( $objBaseKey = null, $node = null )

Описание свойств

$encKey публичное свойство

public $encKey

$type публичное свойство

public $type