PHP Class Neos\Flow\Security\Cryptography\FileBasedSimpleKeyService

Afficher le fichier Open project: neos/flow-development-collection Class Usage Examples

Protected Properties

Свойство Type Description
$hashService HashService
$passwordGenerationLength integer
$passwordHashingStrategy string

Méthodes publiques

Méthode Description
generateKey ( string $name ) : string Generates a new key & saves it encrypted with a hashing strategy
getKey ( string $name ) : boolean Returns a key by its name
injectSettings ( array $settings ) : void
keyExists ( string $name ) : boolean Checks if a key exists
storeKey ( string $name, string $password ) : void Saves a key encrypted with a hashing strategy

Méthodes protégées

Méthode Description
checkKeyName ( string $name ) : string Checks if the given key name is valid amd returns it (unchanged) if yes. Otherwise it throws an exception.
getKeyPathAndFilename ( string $name ) : string Returns the path and filename for the key with the given name.
getPath ( ) : string Helper function to get the base path for key storage.
persistKey ( string $name, string $password ) : void Persists a key to the file system

Method Details

checkKeyName() protected méthode

Checks if the given key name is valid amd returns it (unchanged) if yes. Otherwise it throws an exception.
protected checkKeyName ( string $name ) : string
$name string
Résultat string

generateKey() public méthode

Generates a new key & saves it encrypted with a hashing strategy
public generateKey ( string $name ) : string
$name string
Résultat string

getKey() public méthode

Returns a key by its name
public getKey ( string $name ) : boolean
$name string
Résultat boolean

getKeyPathAndFilename() protected méthode

Returns the path and filename for the key with the given name.
protected getKeyPathAndFilename ( string $name ) : string
$name string
Résultat string

getPath() protected méthode

Helper function to get the base path for key storage.
protected getPath ( ) : string
Résultat string

injectSettings() public méthode

public injectSettings ( array $settings ) : void
$settings array
Résultat void

keyExists() public méthode

Checks if a key exists
public keyExists ( string $name ) : boolean
$name string
Résultat boolean

persistKey() protected méthode

Persists a key to the file system
protected persistKey ( string $name, string $password ) : void
$name string
$password string
Résultat void

storeKey() public méthode

Saves a key encrypted with a hashing strategy
public storeKey ( string $name, string $password ) : void
$name string
$password string
Résultat void

Property Details

$hashService protected_oe property

protected HashService,Neos\Flow\Security\Cryptography $hashService
Résultat HashService

$passwordGenerationLength protected_oe property

protected int $passwordGenerationLength
Résultat integer

$passwordHashingStrategy protected_oe property

protected string $passwordHashingStrategy
Résultat string