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

Authentication event handling

One significant feature that is available only with bean-based configuration is custom processing of authentication events. Authentication events are implemented using the Spring event publishing mechanism, which is based on the o.s.context.ApplicationEvent event model. The Spring event model isn't widely used, but can be very helpful—especially in authenticated systems—when you want to tie specific behavior to actions within the authentication realm.

The event is a typical publish-subscribe model, where notification of subscribers is handled by the Spring runtime itself. It's important to note that by default, the Spring event model is synchronous, so the runtime overhead of any subscribed listeners directly impacts ...

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