AppserverIo\Appserver\ServletEngine\Http\Request::authenticate PHP Метод

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

Use the container login mechanism configured for the servlet context to authenticate the user making this request. This method may modify and commit the passed servlet response.
public authenticate ( AppserverIo\Psr\Servlet\Http\HttpServletResponseInterface $servletResponse ) : boolean
$servletResponse AppserverIo\Psr\Servlet\Http\HttpServletResponseInterface The servlet response
Результат boolean TRUE when non-null values were or have been established as the values returned by getRemoteUser, else FALSE
    public function authenticate(HttpServletResponseInterface $servletResponse)
    {
        // load the authentication manager and try to authenticate this request
        /** @var \AppserverIo\Appserver\ServletEngine\Authentication\AuthenticationManagerInterface $authenticationManager */
        if ($authenticationManager = $this->getAuthenticationManager()) {
            return $authenticationManager->handleRequest($this, $servletResponse);
        }
        // also return TRUE if we can't find an authentication manager
        return true;
    }