PHP 클래스 AppserverIo\Appserver\ServletEngine\Security\Utils\Util

파일 보기 프로젝트 열기: appserver-io/appserver 1 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

createPasswordHash() 공개 정적인 메소드

Creates and returns a hashed version of the passed password.
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

getRoleSets() 공개 정적인 메소드

Execute the rolesQuery against the dsJndiName to obtain the roles for the authenticated user.
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