August 2018
Intermediate to advanced
372 pages
9h 29m
English
Spring Security is an extensible framework that can be used to secure Java applications. It can also be used to handle authentication and authorization, and it uses a declarative style that is not at all intrusive of the existing code.
The framework supports different approaches to authentication, such as the following:
You can also add your own custom authentication mechanism by implementing the AuthenticationProvider interface, as follows:
@Componentpublic class CustomAuthenticationProvider implements AuthenticationProvider { @Override public Authentication authenticate(Authentication authentication) throws AuthenticationException { // get the entered credentials String ...Read now
Unlock full access