Class TenantAwareJpaPlatformUserDetailsService
java.lang.Object
org.apache.fineract.infrastructure.security.service.TenantAwareJpaPlatformUserDetailsService
- All Implemented Interfaces:
org.apache.fineract.infrastructure.security.service.PlatformUserDetailsService,org.springframework.security.core.userdetails.UserDetailsService
@Service("userDetailsService")
public class TenantAwareJpaPlatformUserDetailsService
extends Object
implements org.apache.fineract.infrastructure.security.service.PlatformUserDetailsService
Used in securityContext.xml as implementation of spring security's
UserDetailsService.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.core.userdetails.UserDetailsloadUserByUsername(String username)
-
Constructor Details
-
TenantAwareJpaPlatformUserDetailsService
public TenantAwareJpaPlatformUserDetailsService()
-
-
Method Details
-
loadUserByUsername
@Cacheable(value="usersByUsername", key="T(org.apache.fineract.infrastructure.core.service.ThreadLocalContextUtil).getTenant().getTenantIdentifier().concat(#username+\'ubu\')") public org.springframework.security.core.userdetails.UserDetails loadUserByUsername(String username) throws org.springframework.security.core.userdetails.UsernameNotFoundException, org.springframework.dao.DataAccessException - Specified by:
loadUserByUsernamein interfaceorg.springframework.security.core.userdetails.UserDetailsService- Throws:
org.springframework.security.core.userdetails.UsernameNotFoundExceptionorg.springframework.dao.DataAccessException
-