Class ProxyLDAPUserDetailsService
java.lang.Object
org.jenkinsci.plugins.reverse_proxy_auth.service.ProxyLDAPUserDetailsService
- All Implemented Interfaces:
org.springframework.security.core.userdetails.UserDetailsService
public class ProxyLDAPUserDetailsService
extends Object
implements org.springframework.security.core.userdetails.UserDetailsService
-
Field Summary
Modifier and TypeFieldDescriptionfinal org.springframework.security.ldap.userdetails.LdapAuthoritiesPopulator
final org.springframework.security.ldap.search.LdapUserSearch
-
Constructor Summary
ConstructorDescriptionProxyLDAPUserDetailsService
(org.springframework.security.ldap.search.LdapUserSearch ldapSearch, org.springframework.security.ldap.userdetails.LdapAuthoritiesPopulator authoritiesPopulator) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.core.userdetails.UserDetails
loadUserByUsername
(String username) Loads the user by username
-
Field Details
-
ldapSearch
public final org.springframework.security.ldap.search.LdapUserSearch ldapSearch -
authoritiesPopulator
public final org.springframework.security.ldap.userdetails.LdapAuthoritiesPopulator authoritiesPopulator
-
-
Constructor Details
-
ProxyLDAPUserDetailsService
public ProxyLDAPUserDetailsService(org.springframework.security.ldap.search.LdapUserSearch ldapSearch, org.springframework.security.ldap.userdetails.LdapAuthoritiesPopulator authoritiesPopulator)
-
-
Method Details
-
loadUserByUsername
public org.springframework.security.core.userdetails.UserDetails loadUserByUsername(String username) throws org.springframework.security.core.userdetails.UsernameNotFoundException Loads the user by username- Specified by:
loadUserByUsername
in interfaceorg.springframework.security.core.userdetails.UserDetailsService
- Parameters:
username
- the username- Returns:
- user
- Throws:
org.springframework.security.core.userdetails.UsernameNotFoundException
- if user not foundDataAccessException
- on data access exception
-