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

    Fields
    Modifier and Type
    Field
    Description
    final org.springframework.security.ldap.userdetails.LdapAuthoritiesPopulator
     
    final org.springframework.security.ldap.search.LdapUserSearch
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    ProxyLDAPUserDetailsService(org.springframework.security.ldap.search.LdapUserSearch ldapSearch, org.springframework.security.ldap.userdetails.LdapAuthoritiesPopulator authoritiesPopulator)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.security.core.userdetails.UserDetails
    Loads the user by username

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 interface org.springframework.security.core.userdetails.UserDetailsService
      Parameters:
      username - the username
      Returns:
      user
      Throws:
      org.springframework.security.core.userdetails.UsernameNotFoundException - if user not found
      DataAccessException - on data access exception