Package org.springframework.security.authentication.jaas
package org.springframework.security.authentication.jaas
An authentication provider for JAAS.
-
ClassDescriptionAn
AuthenticationProviderimplementation that retrieves user details from a JAAS login configuration.The AuthorityGranter interface is used to map a given principal to role names.Creates a LoginContext using the Configuration provided to it.This LoginExceptionResolver simply wraps the LoginException with an AuthenticationServiceException.The JaasAuthenticationCallbackHandler is similar to the javax.security.auth.callback.CallbackHandler interface in that it defines a handle method.AnAuthenticationProviderimplementation that retrieves user details from a JAAS login configuration.UsernamePasswordAuthenticationToken extension to carry the Jaas LoginContext that the user was logged intoGrantedAuthoritywhich, in addition to the assigned role, holds the principal that anAuthorityGranterused as a reason to grant this authority.The most basic Callbacks to be handled when using a LoginContext from JAAS, are the NameCallback and PasswordCallback.The most basic Callbacks to be handled when using a LoginContext from JAAS, are the NameCallback and PasswordCallback.The JaasAuthenticationProvider takes an instance of LoginExceptionResolver to resolve LoginModule specific exceptions to Spring Security AuthenticationExceptions.An implementation ofLoginModulethat uses a Spring SecuritySecurityContextto provide authentication.