PHP Класс AppserverIo\Appserver\ServletEngine\Authenticator\BasicAuthenticator

Автор: Johann Zelger ([email protected])
Автор: Bernhard Wick ([email protected])
Автор: Tim Wagner ([email protected])
Наследование: extends AbstractAuthenticator
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$password string The password to authenticate the user with.

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

Метод Описание
authenticate ( AppserverIo\Psr\Servlet\Http\HttpServletRequestInterface $servletRequest, AppserverIo\Psr\Servlet\Http\HttpServletResponseInterface $servletResponse ) : boolean Try to authenticate the user making this request, based on the specified login configuration.
getAuthenticateHeader ( ) : string Returns the authentication header for response to set
getPassword ( ) : string Returns the parsed password

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

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

Return TRUE if any specified constraint has been satisfied, or FALSE if we have created a response challenge already.
public authenticate ( AppserverIo\Psr\Servlet\Http\HttpServletRequestInterface $servletRequest, AppserverIo\Psr\Servlet\Http\HttpServletResponseInterface $servletResponse ) : boolean
$servletRequest AppserverIo\Psr\Servlet\Http\HttpServletRequestInterface The servlet request instance
$servletResponse AppserverIo\Psr\Servlet\Http\HttpServletResponseInterface The servlet response instance
Результат boolean TRUE if authentication has already been processed on a request before, else FALSE

getAuthenticateHeader() публичный Метод

Returns the authentication header for response to set
public getAuthenticateHeader ( ) : string
Результат string

getPassword() публичный Метод

Returns the parsed password
public getPassword ( ) : string
Результат string

Описание свойств

$password защищенное свойство

The password to authenticate the user with.
protected string $password
Результат string