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

Автор: Tim Wagner ([email protected])
Наследование: implements AppserverIo\Appserver\ServletEngine\Authenticator\AuthenticatorInterface
Показать файл Открыть проект

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

Свойство Тип Описание
$authenticationManager AppserverIo\Appserver\ServletEngine\Security\AuthenticationManagerInterface The authentication manager instance.
$configData AppserverIo\Appserver\Core\Api\Node\LoginConfigNodeInterface Holds the configuration data given for authentication type.
$defaultAuthenticator AppserverIo\Lang\Boolean Mark's the authenticator as the default one.
$serial string The UUID of the authenticator.
$username string The name of the user to authenticate.

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

Метод Описание
__construct ( AppserverIo\Appserver\Core\Api\Node\LoginConfigNodeInterface $configData, AppserverIo\Appserver\ServletEngine\Security\AuthenticationManagerInterface $authenticationManager, boolean $defaultAuthenticator = null ) Constructs the authentication type.
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.
getRealmName ( ) : string Return's the realm name.
getSerial ( ) : string Return's the authenticator's UUID.
getUsername ( ) : string | null Returns the parsed username.
isDefaultAuthenticator ( ) : boolean Query whether or not this is the default authenticator.
setDefaultAuthenticator ( ) : void Mark's the authenticator as the default one.

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

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

Constructs the authentication type.
public __construct ( AppserverIo\Appserver\Core\Api\Node\LoginConfigNodeInterface $configData, AppserverIo\Appserver\ServletEngine\Security\AuthenticationManagerInterface $authenticationManager, boolean $defaultAuthenticator = null )
$configData AppserverIo\Appserver\Core\Api\Node\LoginConfigNodeInterface The configuration data for auth type instance
$authenticationManager AppserverIo\Appserver\ServletEngine\Security\AuthenticationManagerInterface The authentication manager instance
$defaultAuthenticator boolean The flag for the default authenticator

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

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

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

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

Return's the authenticator's UUID.
public getSerial ( ) : string
Результат string The UUID

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

Returns the parsed username.
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

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

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

The authentication manager instance.
protected AuthenticationManagerInterface,AppserverIo\Appserver\ServletEngine\Security $authenticationManager
Результат AppserverIo\Appserver\ServletEngine\Security\AuthenticationManagerInterface

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

Holds the configuration data given for authentication type.
protected LoginConfigNodeInterface,AppserverIo\Appserver\Core\Api\Node $configData
Результат AppserverIo\Appserver\Core\Api\Node\LoginConfigNodeInterface

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

Mark's the authenticator as the default one.
protected Boolean,AppserverIo\Lang $defaultAuthenticator
Результат AppserverIo\Lang\Boolean

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

The UUID of the authenticator.
protected string $serial
Результат string

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

The name of the user to authenticate.
protected string $username
Результат string