Interface AuthenticateBasicActeur.AuthenticationDecorator

Enclosing class:
AuthenticateBasicActeur

public static interface AuthenticateBasicActeur.AuthenticationDecorator
Decorator which can do things to the response on authentication succeess/failure, such as setting/clearing cookies
  • Method Details

    • onAuthenticationSucceeded

      void onAuthenticationSucceeded(HttpEvent evt, Page page, Response response, Object[] stuff)
      Called when authentication succeeds. This may be called on every request with basic auth. In particular, if you are going to set a cookie, ensure it is not already there and valid.
      Parameters:
      evt - The event/request
      page - The page in question
      response - The response
      stuff - Objects returned by Authenticator.authenticate()
    • onAuthenticationFailed

      void onAuthenticationFailed(HttpEvent evt, Page page, Response response)
      Called when authetication failse
      Parameters:
      evt - The event
      page - The page
      response - The response