Package org.springframework.security.authentication.jaas
package org.springframework.security.authentication.jaas
An authentication provider for JAAS.
-
ClassDescriptionAn
AuthenticationProvider
implementation 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.AnAuthenticationProvider
implementation that retrieves user details from a JAAS login configuration.UsernamePasswordAuthenticationToken extension to carry the Jaas LoginContext that the user was logged intoGrantedAuthority
which, in addition to the assigned role, holds the principal that anAuthorityGranter
used 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 ofLoginModule
that uses a Spring SecuritySecurityContext
to provide authentication.