AppserverIo\Appserver\ServletEngine\Authenticator\FormAuthenticator::register PHP Метод

register() защищенный Метод

Register's the user principal and the authenticytion in the request and session.
protected register ( AppserverIo\Psr\Servlet\Http\HttpServletRequestInterface $servletRequest, AppserverIo\Psr\Servlet\Http\HttpServletResponseInterface $servletResponse, AppserverIo\Psr\Security\PrincipalInterface $userPrincipal ) : void
$servletRequest AppserverIo\Psr\Servlet\Http\HttpServletRequestInterface The servlet request instance
$servletResponse AppserverIo\Psr\Servlet\Http\HttpServletResponseInterface The servlet response instance
$userPrincipal AppserverIo\Psr\Security\PrincipalInterface The actual user principal
Результат void
    protected function register(HttpServletRequestInterface $servletRequest, HttpServletResponseInterface $servletResponse, PrincipalInterface $userPrincipal)
    {
        // add the user principal and the authentication type to the request
        $servletRequest->setUserPrincipal($userPrincipal);
        $servletRequest->setAuthType($this->getAuthType());
        // set username and password in the session
        if ($session = $servletRequest->getSession()) {
            $session->putData(Constants::PRINCIPAL, $userPrincipal);
        }
    }