PHP Интерфейс AppserverIo\Appserver\ServletEngine\Authenticator\AuthenticatorInterface

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

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

Метод Описание
authenticate ( AppserverIo\Psr\Servlet\Http\HttpServletRequestInterface $servletRequest, AppserverIo\Psr\Servlet\Http\HttpServletResponseInterface $servletResponse ) : boolean Try to authenticate against the configured adapter.
getAuthType ( ) : string Returns the authentication type token.
getAuthenticationManager ( ) : AppserverIo\Appserver\ServletEngine\Security\AuthenticationManagerInterface Return's the authentication manager instance.
getConfigData ( ) : object Returns the configuration data given for authentication type.
getPassword ( ) : string | null Returns the password parsed from the request.
getUsername ( ) : string | null Returns the username parsed from the request.
isDefaultAuthenticator ( ) : boolean Query whether or not this is the default authenticator.
setDefaultAuthenticator ( ) : void Mark's the authenticator as the default one.

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

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

Try to authenticate against the configured adapter.
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

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

Returns the authentication type token.
public getAuthType ( ) : string
Результат string

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

Return's the authentication manager instance.
public getAuthenticationManager ( ) : AppserverIo\Appserver\ServletEngine\Security\AuthenticationManagerInterface
Результат AppserverIo\Appserver\ServletEngine\Security\AuthenticationManagerInterface The authentication manager instance

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

Returns the configuration data given for authentication type.
public getConfigData ( ) : object
Результат object The configuration data

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

Returns the password parsed from the request.
public getPassword ( ) : string | null
Результат string | null The password

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

Returns the username parsed from the request.
public getUsername ( ) : string | null
Результат string | null The username

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

Query whether or not this is the default authenticator.
public isDefaultAuthenticator ( ) : boolean
Результат boolean TRUE if this is the default authenticator, else FALSE

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

Mark's the authenticator as the default one.
public setDefaultAuthenticator ( ) : void
Результат void