BaltradDex
BALTRAD Data Exchange System
Loading...
Searching...
No Matches
eu.baltrad.dex.auth.ldap.BaltradUserDetailsService Class Reference
Inheritance diagram for eu.baltrad.dex.auth.ldap.BaltradUserDetailsService:

Public Member Functions

UserDetails loadUserByUsername (String userName) throws UsernameNotFoundException, DataAccessException
 
String getUserPrefix ()
 
void setUserPrefix (String userPrefix)
 
void afterPropertiesSet () throws Exception
 
IUserManager getManager ()
 
void setManager (IUserManager manager)
 

Detailed Description

A user service for fetching the user details from the database when using a ldap as the authentication mechanism. The baltrad user details service will read the user information from the database but the actual password is not used since that has been handled in earlier steps in the LdapAuthenticationProvider.

You can define a prefix that should be removed from the username before loading from the database. If, for example, you have the the user 'admin' in the database, but it is known as 'baltrad/admin' in the ldap, you can define the userPrefix='baltrad/' and hence the user read from the database will be 'admin' even though the authorization was performed on 'baltrad/admin'

Author
Anders Henja

Member Function Documentation

◆ afterPropertiesSet()

void eu.baltrad.dex.auth.ldap.BaltradUserDetailsService.afterPropertiesSet ( ) throws Exception
inline

Requires that a user manager has been set

◆ getManager()

IUserManager eu.baltrad.dex.auth.ldap.BaltradUserDetailsService.getManager ( )
inline
Returns
the user manager

◆ getUserPrefix()

String eu.baltrad.dex.auth.ldap.BaltradUserDetailsService.getUserPrefix ( )
inline
Returns
the user prefix

◆ loadUserByUsername()

UserDetails eu.baltrad.dex.auth.ldap.BaltradUserDetailsService.loadUserByUsername ( String userName) throws UsernameNotFoundException, DataAccessException
inline
See also
UserDetailsService.loadUserByUsername(String)

◆ setManager()

void eu.baltrad.dex.auth.ldap.BaltradUserDetailsService.setManager ( IUserManager manager)
inline
Parameters
managerthe user manager to set

◆ setUserPrefix()

void eu.baltrad.dex.auth.ldap.BaltradUserDetailsService.setUserPrefix ( String userPrefix)
inline
Parameters
userPrefixthe user prefix to set

The documentation for this class was generated from the following file: