AppserverIo\Appserver\ServletEngine\Security\AuthenticationValve::invoke PHP Method

invoke() public method

Tries to authenticate the request and throw an exception if authentication is required,
public invoke ( AppserverIo\Psr\Servlet\Http\HttpServletRequestInterface $servletRequest, AppserverIo\Psr\Servlet\Http\HttpServletResponseInterface $servletResponse ) : void
$servletRequest AppserverIo\Psr\Servlet\Http\HttpServletRequestInterface The request instance
$servletResponse AppserverIo\Psr\Servlet\Http\HttpServletResponseInterface The response instance
return void
    public function invoke(HttpServletRequestInterface $servletRequest, HttpServletResponseInterface $servletResponse)
    {
        $servletRequest->authenticate($servletResponse);
    }
AuthenticationValve