spring security login authentication framework ssm

Login security interceptors to UsernamePasswordAuthenticationFilter, wherein the interface where the default login access / login, and to post requests mode  

 

 

 , AttemptAuthentication () This method is an authentication method, will eventually be sent by the client username and password into the package, the UsernamePasswordAuthenticationToken object is essentially Authentication object,

Because UsernamePasswordAuthenticationToken inherited AbstractAuthenticationToken, and AbstractAuthenticationToken realized Authentication

 

 

 

 

在UsernamePasswordAuthenticationFilter this.getAuthenticationManager().authenticate(authRequest);

 

Guess you like

Origin www.cnblogs.com/yjava/p/12587038.html