Метод | Описание | |
---|---|---|
createPasswordHash ( string $hashAlgorithm, string $hashEncoding, string $hashCharset, string $name, string $password, mixed $callback ) : AppserverIo\Lang\String | Creates and returns a hashed version of the passed password. | |
getRoleSets ( string $username, string $lookupName, string $rolesQuery, AppserverIo\Psr\Security\Auth\Spi\LoginModuleInterface $aslm ) : array | Execute the rolesQuery against the dsJndiName to obtain the roles for the authenticated user. |
Метод | Описание | |
---|---|---|
__clone ( ) : void | This is a utility class, so protect it against cloning. | |
__construct ( ) | This is a utility class, so protect it against direct instantiation. |
public static createPasswordHash ( string $hashAlgorithm, string $hashEncoding, string $hashCharset, string $name, string $password, mixed $callback ) : AppserverIo\Lang\String | ||
$hashAlgorithm | string | The hash algorithm to use |
$hashEncoding | string | The hash encoding to use |
$hashCharset | string | The hash charset to use |
$name | string | The login name |
$password | string | The password credential |
$callback | mixed | The callback providing some additional hashing functionality |
Результат | AppserverIo\Lang\String | The hashed password |
public static getRoleSets ( string $username, string $lookupName, string $rolesQuery, AppserverIo\Psr\Security\Auth\Spi\LoginModuleInterface $aslm ) : array | ||
$username | string | The username to load the roles for |
$lookupName | string | The lookup name for the datasource |
$rolesQuery | string | The query to load the roles |
$aslm | AppserverIo\Psr\Security\Auth\Spi\LoginModuleInterface | The login module to add the roles to |
Результат | array | An array of groups containing the sets of roles |