Package hudson.plugins.active_directory
Class AbstractActiveDirectoryAuthenticationProvider
java.lang.Object
hudson.plugins.active_directory.AbstractActiveDirectoryAuthenticationProvider
- All Implemented Interfaces:
GroupDetailsService,org.springframework.security.core.userdetails.UserDetailsService
- Direct Known Subclasses:
ActiveDirectoryAuthenticationProvider,ActiveDirectoryUnixAuthenticationProvider
public abstract class AbstractActiveDirectoryAuthenticationProvider
extends Object
implements org.springframework.security.core.userdetails.UserDetailsService, GroupDetailsService
- Author:
- Kohsuke Kawaguchi
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidadditionalAuthenticationChecks(org.springframework.security.core.userdetails.UserDetails userDetails, org.springframework.security.authentication.UsernamePasswordAuthenticationToken authentication) org.springframework.security.core.userdetails.UserDetailsloadUserByUsername(String username) protected abstract org.springframework.security.core.userdetails.UserDetailsretrieveUser(String username, org.springframework.security.authentication.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, waitMethods inherited from interface hudson.plugins.active_directory.GroupDetailsService
loadGroupByGroupname
-
Constructor Details
-
AbstractActiveDirectoryAuthenticationProvider
public AbstractActiveDirectoryAuthenticationProvider()
-
-
Method Details
-
retrieveUser
protected abstract org.springframework.security.core.userdetails.UserDetails retrieveUser(String username, org.springframework.security.authentication.UsernamePasswordAuthenticationToken authentication) throws org.springframework.security.core.AuthenticationException Authenticates the user (ifauthentication!=null), or retrieve the user name information (otherwise.)- Throws:
org.springframework.security.core.AuthenticationException
-
loadUserByUsername
public org.springframework.security.core.userdetails.UserDetails loadUserByUsername(String username) throws org.springframework.security.core.userdetails.UsernameNotFoundException - Specified by:
loadUserByUsernamein interfaceorg.springframework.security.core.userdetails.UserDetailsService- Throws:
org.springframework.security.core.userdetails.UsernameNotFoundException
-
additionalAuthenticationChecks
protected void additionalAuthenticationChecks(org.springframework.security.core.userdetails.UserDetails userDetails, org.springframework.security.authentication.UsernamePasswordAuthenticationToken authentication) throws org.springframework.security.core.AuthenticationException - Throws:
org.springframework.security.core.AuthenticationException
-