AppserverIo\Appserver\ServletEngine\Authenticator\AbstractAuthenticator::__construct PHP Метод

__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
    public function __construct(LoginConfigNodeInterface $configData, AuthenticationManagerInterface $authenticationManager, Boolean $defaultAuthenticator = null)
    {
        // create a UUID serial for the authenticator
        $this->serial = Uuid::uuid4()->__toString();
        // initialize the authenticator with the passed values
        $this->configData = $configData;
        $this->authenticationManager = $authenticationManager;
        // query whether or not the default flag has been passed
        if ($defaultAuthenticator == null) {
            $this->defaultAuthenticator = new Boolean(false);
        } else {
            $this->defaultAuthenticator = $defaultAuthenticator;
        }
    }