public interface

HttpAuthenticationFailureHandler

com.atlassian.bitbucket.auth.HttpAuthenticationFailureHandler

Class Overview

Handler for authentication failure over HTTP. onAuthenticationFailure(HttpAuthenticationFailureContext) is called by the system for all installed http-auth-failure-handler module types, in order of their configured weight (low to high).

Summary

Public Methods
boolean onAuthenticationFailure(HttpAuthenticationFailureContext context)
Callback method that is called by the system on authentication failure.

Public Methods

public boolean onAuthenticationFailure (HttpAuthenticationFailureContext context)

Callback method that is called by the system on authentication failure. The AuthenticationException reason for authentication failure can be retrieved through getAuthenticationException().

Implementors can prevent other failure handlers further down the chain from being evaluated by returning true. They should only do so if the handler has written to or redirected the HTTP response.

Parameters
context a context object holding the request, response, authentication details and authentication exception.
Returns
  • true if the request was fully handled and no other failure handlers should be evaluated. Otherwise false.
Throws
ServletException
IOException
ServletException