Overview
Spring Security is a framework that when integrated with the spring framework gives the capability to the application of having a standard way of authentication and authorization (access control) mechanism.
It consists of many pre-built ways of authentication and authorization that are given by the spring security developer ranging from in-memory authentication to JDBC authentication and many more. It is easily configurable and extendable to meet the needs of a specific application.
It can be used for any type of application from desktop/standalone to web applications and using it we can setup application security in a few hours.
Spring Security works in a self-contained manner which means that every file that is needed by the spring security framework is present in your application when you configure spring security in your application and there is no need of any special configuration/policy file that needs to be added to the JVM or there is no need to add spring security to common classpath location.
In Technical terms, spring-security for web application is nothing but a chain of servlet filters that are stacked on one another in a specified order depending on the security needs of an application.