O'Reilly logo

Spring Security 3.x Cookbook by Anjana Mankale

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

Spring Security with JAAS

In Chapter 1, Basic Security, we have already demonstrated how to use JAAS configuration in JBOSS for authentication and authorization. Spring Security also provides a full support to implement JAAS-based authentication. We need to configure DefaultJaasAuthenticationProvider as the authentication provider. In this section, we will demonstrate integration of Spring Security with JAAS.

Let us see some of the JAAS-based classes and interfaces offered by Spring Security APIs:

  • org.springframework.security.authentication.jaas
  • AbstractJaasAuthenticationProvider
  • AuthorityGranter
  • DefaultJaasAuthenticationProvider
  • DefaultLoginExceptionResolver
  • JaasAuthenticationCallbackHandler
  • JaasAuthenticationToken
  • JaasGrantedAuthority
  • JaasNameCallbackHandler ...

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