Свойство | Тип | Описание | |
---|---|---|---|
$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. |
protected getRoleSets ( ) : array | ||
Результат | array | Array containing the sets of roles |
protected getUsersPassword ( ) : AppserverIo\Lang\String | ||
Результат | AppserverIo\Lang\String | The user's password |
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 |
protected String,AppserverIo\Lang $lookupName | ||
Результат | AppserverIo\Lang\String |
protected String,AppserverIo\Lang $principalsQuery | ||
Результат | AppserverIo\Lang\String |