PHP Класс Neos\Flow\Security\AccountFactory

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

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

Свойство Тип Описание
$hashService Neos\Flow\Security\Cryptography\HashService
$policyService Neos\Flow\Security\Policy\PolicyService

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

Метод Описание
createAccountWithPassword ( string $identifier, string $password, array $roleIdentifiers = [], string $authenticationProviderName = 'DefaultProvider', string $passwordHashingStrategy = 'default' ) : Account Creates a new account and sets the given password and roles

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

createAccountWithPassword() публичный метод

Creates a new account and sets the given password and roles
public createAccountWithPassword ( string $identifier, string $password, array $roleIdentifiers = [], string $authenticationProviderName = 'DefaultProvider', string $passwordHashingStrategy = 'default' ) : Account
$identifier string Identifier of the account, must be unique
$password string The clear text password
$roleIdentifiers array Optionally an array of role identifiers to assign to the new account
$authenticationProviderName string Optional name of the authentication provider the account is affiliated with
$passwordHashingStrategy string Optional password hashing strategy to use for the password
Результат Account A new account, not yet added to the account repository

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

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

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

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

protected PolicyService,Neos\Flow\Security\Policy $policyService
Результат Neos\Flow\Security\Policy\PolicyService