Class UsernamePasswordAuthenticationFilter

java.lang.Object
com.codename1.backend.security.UsernamePasswordAuthenticationFilter
All Implemented Interfaces:
SecurityFilter

public final class UsernamePasswordAuthenticationFilter extends Object implements SecurityFilter

Signs a user in from the login form: a POST to the login processing URL carrying username and password.

On success the chain's SessionSignIn takes over: the session id changes, the authentication is saved for later requests, and the AuthenticationSuccessHandler answers -- by default with a redirect to where the user was going -- unless the chain asks for a second factor first. On failure nothing is kept and the AuthenticationFailureHandler answers.