@Override
    protected boolean authenticate(final Request request, final Response response)
    {
        // Restore credentials from the cookie
        final Cookie credentialsCookie = request.getCookies().getFirst(this.getCookieName());
        
        if(credentialsCookie != null)
        {
            ChallengeResponse credentials = this.parseCredentials(credentialsCookie.getValue());
            if(credentials == null)
            {
                response.getCookieSettings().removeAll(this.getCookieName());
            }
            else
            {
                request.setChallengeResponse(credentials);
            }
        }
        
        this.log.debug("Calling super.authenticate");
        return super.authenticate(request, response);
    }
@ Override protected boolean authenticate ( final Request request , final Response response ) { final Cookie credentialsCookie = request . getCookies ( ) . getFirst ( this . getCookieName ( ) ) ; if ( credentialsCookie != null ) { ChallengeResponse credentials = this . parseCredentials ( credentialsCookie . getValue ( ) ) ; if ( credentials == null ) { response . getCookieSettings ( ) . removeAll ( this . getCookieName ( ) ) ; } else { request . setChallengeResponse ( credentials ) ; } } this . log . debug ( "Calling super.authenticate" ) ; return super . authenticate ( request , response ) ; }
Restores credentials from the cookie named {@link #getCookieName()} if available. The usual
processing is the followed.