Package hudson.plugins.active_directory
Class AbstractActiveDirectoryAuthenticationProvider
- java.lang.Object
-
- hudson.plugins.active_directory.AbstractActiveDirectoryAuthenticationProvider
-
- All Implemented Interfaces:
GroupDetailsService
,UserDetailsService
- Direct Known Subclasses:
ActiveDirectoryAuthenticationProvider
,ActiveDirectoryUnixAuthenticationProvider
public abstract class AbstractActiveDirectoryAuthenticationProvider extends Object implements UserDetailsService, GroupDetailsService
- Author:
- Kohsuke Kawaguchi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AbstractActiveDirectoryAuthenticationProvider.NoAuthentication
-
Constructor Summary
Constructors Constructor Description AbstractActiveDirectoryAuthenticationProvider()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
additionalAuthenticationChecks(UserDetails userDetails, UsernamePasswordAuthenticationToken authentication)
UserDetails
loadUserByUsername(String username)
protected abstract UserDetails
retrieveUser(String username, UsernamePasswordAuthenticationToken authentication)
Authenticates the user (ifauthentication!=null
), or retrieve the user name information (otherwise.)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface hudson.plugins.active_directory.GroupDetailsService
loadGroupByGroupname
-
Methods inherited from interface org.acegisecurity.userdetails.UserDetailsService
toSpring
-
-
-
-
Method Detail
-
retrieveUser
protected abstract UserDetails retrieveUser(String username, UsernamePasswordAuthenticationToken authentication) throws AuthenticationException
Authenticates the user (ifauthentication!=null
), or retrieve the user name information (otherwise.)- Throws:
AuthenticationException
-
loadUserByUsername
public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException, DataAccessException
- Specified by:
loadUserByUsername
in interfaceUserDetailsService
- Throws:
UsernameNotFoundException
DataAccessException
-
additionalAuthenticationChecks
protected void additionalAuthenticationChecks(UserDetails userDetails, UsernamePasswordAuthenticationToken authentication) throws AuthenticationException
- Throws:
AuthenticationException
-
-