Rohit Mehta wrote:What I feel is that request security provide Authentication (whether you are a valid person to log on / use to system) - where as method level security is a tool which is used to identify whether an user has sufficient privileges (i.e. authorization) to call particular method or not.
It is useful where we have multiple roles & provide functionality restricted as per roles. Authorization is a basic requirement for large apps.
Most of the Enterprise level apps implement authorization in one way or other. Spring has also come up with their way.
In Spring Security it isn't like that.
You have authorization and authentication on both levels.
The reason why you add method security with request security is to protect yourself from a hacker skipping over your URL request and hitting the middle tier server and method of you class directly.