PHP Интерфейс AppserverIo\Appserver\ServletEngine\Security\RealmInterface

Автор: Tim Wagner ([email protected])
Показать файл Открыть проект Примеры использования интерфейса

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

Метод Описание
authenticate ( string $username, string $password ) : AppserverIo\Security\PrincipalInterface | null Tries to authenticate the user with the passed username and password.
authenticateByUsernameAndCallbackHandler ( string $username, AppserverIo\Psr\Security\Auth\Callback\CallbackHandlerInterface $callbackHandler ) : AppserverIo\Security\PrincipalInterface | null Tries to authenticate the user with the passed username and callback handler.
getConfiguration ( ) : AppserverIo\Appserver\Core\Api\Node\SecurityDomainNodeInterface Return's the realm's configuration.
getExceptionStack ( ) : AppserverIo\Collections\ArrayList Return's the exception stack.
getName ( ) : string Return's the name of the realm.

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

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

Tries to authenticate the user with the passed username and password.
public authenticate ( string $username, string $password ) : AppserverIo\Security\PrincipalInterface | null
$username string The name of the user to authenticate
$password string The password used for authentication
Результат AppserverIo\Security\PrincipalInterface | null The authenticated user principal

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

Tries to authenticate the user with the passed username and callback handler.
public authenticateByUsernameAndCallbackHandler ( string $username, AppserverIo\Psr\Security\Auth\Callback\CallbackHandlerInterface $callbackHandler ) : AppserverIo\Security\PrincipalInterface | null
$username string The name of the user to authenticate
$callbackHandler AppserverIo\Psr\Security\Auth\Callback\CallbackHandlerInterface The callback handler used to load the credentials
Результат AppserverIo\Security\PrincipalInterface | null The authenticated user principal

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

Return's the realm's configuration.
public getConfiguration ( ) : AppserverIo\Appserver\Core\Api\Node\SecurityDomainNodeInterface
Результат AppserverIo\Appserver\Core\Api\Node\SecurityDomainNodeInterface The realm's configuration

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

Return's the exception stack.
public getExceptionStack ( ) : AppserverIo\Collections\ArrayList
Результат AppserverIo\Collections\ArrayList The exception stack

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

Return's the name of the realm.
public getName ( ) : string
Результат string The realm's name