PHP Class XMLSecEnc

Afficher le fichier Open project: onelogin/php-saml Class Usage Examples

Méthodes publiques

Свойство Type Description
$encKey
$type

Méthodes publiques

Méthode Description
__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 )

Private Methods

Méthode Description
_resetTemplate ( )

Method Details

__construct() public méthode

public __construct ( )

addReference() public méthode

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

decryptKey() public méthode

public decryptKey ( $encKey )

decryptNode() public méthode

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
Résultat string | DOMElement The decrypted data.

encryptKey() public méthode

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

encryptNode() public méthode

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.
Résultat DOMElement The -element.

encryptReferences() public méthode

public encryptReferences ( $objKey )

getCipherValue() public méthode

Retrieve the CipherValue text from this encrypted node.
public getCipherValue ( ) : string | null
Résultat string | null The Ciphervalue text, or null if no CipherValue is found.

locateEncryptedData() public méthode

public locateEncryptedData ( $element )

locateKey() public méthode

public locateKey ( $node = null )

locateKeyInfo() public méthode

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

setNode() public méthode

public setNode ( $node )

staticLocateKeyInfo() static public méthode

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

Property Details

$encKey public_oe property

public $encKey

$type public_oe property

public $type