O'Reilly logo

Spring Security 3 by Peter Mularien

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

Understanding and configuring exception handling

Spring Security uses a simple dispatcher pattern to translate exceptions thrown by the framework into concrete actions that affect the processing of a user's request to a secured resource. The o.s.s.web.access.ExceptionTranslationFilter, one of the last servlet filters in the standard Spring Security filter chain, is responsible for examining exceptions thrown during the authentication and authorization processes (in FilterSecurityInterceptor, the culmination of the filter chain), and reacting appropriately to them.

The standard ExceptionTranslationFilter provides dispatching for three general classes of failure, as illustrated in the following diagram:

We can see that ExceptionTranslationFilter ...

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