PHP Class Airship\Engine\Security\HiddenString

This is just to hide sensitive strings from stack traces, etc.
Afficher le fichier Open project: paragonie/airship Class Usage Examples

Protected Properties

Свойство Type Description
$allowInline boolean
$internalStringValue string

Méthodes publiques

Méthode Description
__construct ( string $value, boolean $allowInline = false ) HiddenString constructor.
__debugInfo ( ) : array Hide its internal state from var_dump()
__destruct ( ) Wipe it from memory after it's been used.
__toString ( ) : string Prevent accidental echoing of a hidden string
getString ( ) : string Explicit invocation -- get the raw string value

Method Details

__construct() public méthode

HiddenString constructor.
public __construct ( string $value, boolean $allowInline = false )
$value string
$allowInline boolean

__debugInfo() public méthode

Hide its internal state from var_dump()
public __debugInfo ( ) : array
Résultat array

__destruct() public méthode

Wipe it from memory after it's been used.
public __destruct ( )

__toString() public méthode

Prevent accidental echoing of a hidden string
public __toString ( ) : string
Résultat string

getString() public méthode

Explicit invocation -- get the raw string value
public getString ( ) : string
Résultat string

Property Details

$allowInline protected_oe property

protected bool $allowInline
Résultat boolean

$internalStringValue protected_oe property

protected string $internalStringValue
Résultat string