hudson.plugins.active_directory
Class AbstractActiveDirectoryAuthenticationProvider
java.lang.Object
org.acegisecurity.providers.dao.AbstractUserDetailsAuthenticationProvider
hudson.plugins.active_directory.AbstractActiveDirectoryAuthenticationProvider
- All Implemented Interfaces:
- GroupDetailsService, org.acegisecurity.providers.AuthenticationProvider, org.acegisecurity.userdetails.UserDetailsService, org.springframework.beans.factory.InitializingBean, org.springframework.context.MessageSourceAware
- Direct Known Subclasses:
- ActiveDirectoryAuthenticationProvider, ActiveDirectoryUnixAuthenticationProvider
public abstract class AbstractActiveDirectoryAuthenticationProvider
- extends org.acegisecurity.providers.dao.AbstractUserDetailsAuthenticationProvider
- implements org.acegisecurity.userdetails.UserDetailsService, GroupDetailsService
- Author:
- Kohsuke Kawaguchi
| Fields inherited from class org.acegisecurity.providers.dao.AbstractUserDetailsAuthenticationProvider |
hideUserNotFoundExceptions, messages |
|
Method Summary |
protected void |
additionalAuthenticationChecks(org.acegisecurity.userdetails.UserDetails userDetails,
org.acegisecurity.providers.UsernamePasswordAuthenticationToken authentication)
|
protected abstract boolean |
canRetrieveUserByName()
Returns true if we can retrieve user just from the name without supplying any credential. |
org.acegisecurity.userdetails.UserDetails |
loadUserByUsername(String username)
|
protected abstract org.acegisecurity.userdetails.UserDetails |
retrieveUser(String username,
org.acegisecurity.providers.UsernamePasswordAuthenticationToken authentication)
Authenticates the user (if authentication!=null), or retrieve the user name information (otherwise.) |
| Methods inherited from class org.acegisecurity.providers.dao.AbstractUserDetailsAuthenticationProvider |
afterPropertiesSet, authenticate, createSuccessAuthentication, doAfterPropertiesSet, getUserCache, isForcePrincipalAsString, isHideUserNotFoundExceptions, setForcePrincipalAsString, setHideUserNotFoundExceptions, setMessageSource, setUserCache, supports |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractActiveDirectoryAuthenticationProvider
public AbstractActiveDirectoryAuthenticationProvider()
retrieveUser
protected abstract org.acegisecurity.userdetails.UserDetails retrieveUser(String username,
org.acegisecurity.providers.UsernamePasswordAuthenticationToken authentication)
throws org.acegisecurity.AuthenticationException
- Authenticates the user (if
authentication!=null), or retrieve the user name information (otherwise.)
- Specified by:
retrieveUser in class org.acegisecurity.providers.dao.AbstractUserDetailsAuthenticationProvider
- Throws:
org.acegisecurity.AuthenticationException
canRetrieveUserByName
protected abstract boolean canRetrieveUserByName()
- Returns true if we can retrieve user just from the name without supplying any credential.
loadUserByUsername
public org.acegisecurity.userdetails.UserDetails loadUserByUsername(String username)
throws org.acegisecurity.userdetails.UsernameNotFoundException,
org.springframework.dao.DataAccessException
- Specified by:
loadUserByUsername in interface org.acegisecurity.userdetails.UserDetailsService
- Throws:
org.acegisecurity.userdetails.UsernameNotFoundException
org.springframework.dao.DataAccessException
additionalAuthenticationChecks
protected void additionalAuthenticationChecks(org.acegisecurity.userdetails.UserDetails userDetails,
org.acegisecurity.providers.UsernamePasswordAuthenticationToken authentication)
throws org.acegisecurity.AuthenticationException
- Specified by:
additionalAuthenticationChecks in class org.acegisecurity.providers.dao.AbstractUserDetailsAuthenticationProvider
- Throws:
org.acegisecurity.AuthenticationException
Copyright © 2004-2012. All Rights Reserved.