PHP 클래스 AppserverIo\Appserver\ServletEngine\Security\Auth\Spi\DatabasePDOLoginModule

상속: extends UsernamePasswordLoginModule
파일 보기 프로젝트 열기: appserver-io/appserver

보호된 프로퍼티들

프로퍼티 타입 설명
$lookupName AppserverIo\Lang\String The datasource name used to lookup in the naming directory.
$principalsQuery AppserverIo\Lang\String The database query used to load the user.
$rolesQuery AppserverIo\Lang\String The database query used to load the user's roles.

공개 메소드들

메소드 설명
initialize ( AppserverIo\Psr\Security\Auth\Subject $subject, AppserverIo\Psr\Security\Auth\Callback\CallbackHandlerInterface $callbackHandler, AppserverIo\Collections\MapInterface $sharedState, AppserverIo\Collections\MapInterface $params ) : void Initialize the login module. This stores the subject, callbackHandler and sharedState and options for the login session. Subclasses should override if they need to process their own options. A call to parent::initialize() must be made in the case of an override.

보호된 메소드들

메소드 설명
getRoleSets ( ) : array Execute the rolesQuery against the lookupName to obtain the roles for the authenticated user.
getUsersPassword ( ) : AppserverIo\Lang\String Returns the password for the user from the sharedMap data.

메소드 상세

getRoleSets() 보호된 메소드

Execute the rolesQuery against the lookupName to obtain the roles for the authenticated user.
protected getRoleSets ( ) : array
리턴 array Array containing the sets of roles

getUsersPassword() 보호된 메소드

Returns the password for the user from the sharedMap data.
protected getUsersPassword ( ) : AppserverIo\Lang\String
리턴 AppserverIo\Lang\String The user's password

initialize() 공개 메소드

The following parameters can by default be passed from the configuration. lookupName: The datasource name used to lookup in the naming directory rolesQuery: The database query used to load the user's roles principalsQuery: The database query used to load the user
public initialize ( AppserverIo\Psr\Security\Auth\Subject $subject, AppserverIo\Psr\Security\Auth\Callback\CallbackHandlerInterface $callbackHandler, AppserverIo\Collections\MapInterface $sharedState, AppserverIo\Collections\MapInterface $params ) : void
$subject AppserverIo\Psr\Security\Auth\Subject The Subject to update after a successful login
$callbackHandler AppserverIo\Psr\Security\Auth\Callback\CallbackHandlerInterface The callback handler that will be used to obtain the user identity and credentials
$sharedState AppserverIo\Collections\MapInterface A map shared between all configured login module instances
$params AppserverIo\Collections\MapInterface The parameters passed to the login module
리턴 void

프로퍼티 상세

$lookupName 보호되어 있는 프로퍼티

The datasource name used to lookup in the naming directory.
protected String,AppserverIo\Lang $lookupName
리턴 AppserverIo\Lang\String

$principalsQuery 보호되어 있는 프로퍼티

The database query used to load the user.
protected String,AppserverIo\Lang $principalsQuery
리턴 AppserverIo\Lang\String

$rolesQuery 보호되어 있는 프로퍼티

The database query used to load the user's roles.
protected String,AppserverIo\Lang $rolesQuery
리턴 AppserverIo\Lang\String