PHP 클래스 Neos\Flow\Security\Cryptography\FileBasedSimpleKeyService

파일 보기 프로젝트 열기: neos/flow-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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