public abstract class AbstractActiveDirectoryAuthenticationProvider extends org.springframework.security.authentication.dao.AbstractUserDetailsAuthenticationProvider implements org.springframework.security.core.userdetails.UserDetailsService, GroupDetailsService
| Modifier and Type | Field and Description |
|---|---|
static boolean |
SHOW_USER_NOT_FOUND_EXCEPTION
Setting this to true might help with diagnosing login problem.
|
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractActiveDirectoryAuthenticationProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
additionalAuthenticationChecks(org.springframework.security.core.userdetails.UserDetails userDetails,
org.springframework.security.authentication.UsernamePasswordAuthenticationToken authentication) |
protected abstract boolean |
canRetrieveUserByName()
Returns true if we can retrieve user just from the name without supplying any credential.
|
org.springframework.security.core.userdetails.UserDetails |
loadUserByUsername(String username) |
protected abstract org.springframework.security.core.userdetails.UserDetails |
retrieveUser(String username,
org.springframework.security.authentication.UsernamePasswordAuthenticationToken authentication)
Authenticates the user (if
authentication!=null), or retrieve the user name information (otherwise.) |
afterPropertiesSet, authenticate, createSuccessAuthentication, doAfterPropertiesSet, getPostAuthenticationChecks, getPreAuthenticationChecks, getUserCache, isForcePrincipalAsString, isHideUserNotFoundExceptions, setAuthoritiesMapper, setForcePrincipalAsString, setHideUserNotFoundExceptions, setMessageSource, setPostAuthenticationChecks, setPreAuthenticationChecks, setUserCache, supportsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitloadGroupByGroupnamepublic static boolean SHOW_USER_NOT_FOUND_EXCEPTION
protected AbstractActiveDirectoryAuthenticationProvider()
protected abstract org.springframework.security.core.userdetails.UserDetails retrieveUser(String username, org.springframework.security.authentication.UsernamePasswordAuthenticationToken authentication) throws org.springframework.security.core.AuthenticationException
authentication!=null), or retrieve the user name information (otherwise.)retrieveUser in class org.springframework.security.authentication.dao.AbstractUserDetailsAuthenticationProviderorg.springframework.security.core.AuthenticationExceptionprotected abstract boolean canRetrieveUserByName()
public org.springframework.security.core.userdetails.UserDetails loadUserByUsername(String username) throws org.springframework.security.core.userdetails.UsernameNotFoundException, org.springframework.dao.DataAccessException
loadUserByUsername in interface org.springframework.security.core.userdetails.UserDetailsServiceorg.springframework.security.core.userdetails.UsernameNotFoundExceptionorg.springframework.dao.DataAccessExceptionprotected void additionalAuthenticationChecks(org.springframework.security.core.userdetails.UserDetails userDetails,
org.springframework.security.authentication.UsernamePasswordAuthenticationToken authentication)
throws org.springframework.security.core.AuthenticationException
additionalAuthenticationChecks in class org.springframework.security.authentication.dao.AbstractUserDetailsAuthenticationProviderorg.springframework.security.core.AuthenticationExceptionCopyright © 2004-2014 Hudson. All Rights Reserved.