Package com.mastfrog.acteur.auth
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 Summary
Modifier and TypeMethodDescriptionvoidonAuthenticationFailed(HttpEvent evt, Page page, Response response) Called when authetication failsevoidonAuthenticationSucceeded(HttpEvent evt, Page page, Response response, Object[] stuff) Called when authentication succeeds.
-
Method Details
-
onAuthenticationSucceeded
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/requestpage- The page in questionresponse- The responsestuff- Objects returned by Authenticator.authenticate()
-
onAuthenticationFailed
Called when authetication failse- Parameters:
evt- The eventpage- The pageresponse- The response
-