O'Reilly logo

Spring Security - Third Edition by Peter Mularien, Robert Winch, Mick Knutson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How does method security work?

The access decision mechanism for method security—whether or not a given request is allowed—is conceptually the same as the access decision logic for web request access. AccessDecisionManager polls a set of AccessDecisionVoters, each of which can provide a decision to grant or deny access, or abstain from voting. The specific implementation of AccessDecisionManager aggregates the voter decisions and arrives at an overall decision to allow for the method invocation.

Web request access decision making is less complicated, due to the fact that the availability of servlet filters makes interception (and summary rejection) of securable requests relatively straightforward. As method invocation can happen from anywhere, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required