PHP Класс Neos\Flow\Security\Cryptography\FileBasedSimpleKeyService

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

Защищенные свойства (Protected)

Свойство Тип Описание
$hashService HashService
$passwordGenerationLength integer
$passwordHashingStrategy string

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

Метод Описание
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

Защищенные методы

Метод Описание
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

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

checkKeyName() защищенный Метод

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
Результат string

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

Generates a new key & saves it encrypted with a hashing strategy
public generateKey ( string $name ) : string
$name string
Результат string

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

Returns a key by its name
public getKey ( string $name ) : boolean
$name string
Результат boolean

getKeyPathAndFilename() защищенный Метод

Returns the path and filename for the key with the given name.
protected getKeyPathAndFilename ( string $name ) : string
$name string
Результат string

getPath() защищенный Метод

Helper function to get the base path for key storage.
protected getPath ( ) : string
Результат string

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

public injectSettings ( array $settings ) : void
$settings array
Результат void

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

Checks if a key exists
public keyExists ( string $name ) : boolean
$name string
Результат boolean

persistKey() защищенный Метод

Persists a key to the file system
protected persistKey ( string $name, string $password ) : void
$name string
$password string
Результат void

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

Saves a key encrypted with a hashing strategy
public storeKey ( string $name, string $password ) : void
$name string
$password string
Результат void

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

$hashService защищенное свойство

protected HashService,Neos\Flow\Security\Cryptography $hashService
Результат HashService

$passwordGenerationLength защищенное свойство

protected int $passwordGenerationLength
Результат integer

$passwordHashingStrategy защищенное свойство

protected string $passwordHashingStrategy
Результат string