Class ChainedUserDetailsService

  • All Implemented Interfaces:
    org.springframework.security.core.userdetails.UserDetailsService

    public class ChainedUserDetailsService
    extends Object
    implements org.springframework.security.core.userdetails.UserDetailsService
    This class contains a list of UserDetailsService objects. Requests to load UserDetails will be delegated down to the list in a round-robin fashion until a match is found. This first UserDetailsService to return a match will be used.

    Created by nbaker on 5/13/14.

    • Constructor Detail

      • ChainedUserDetailsService

        public ChainedUserDetailsService​(List<org.springframework.security.core.userdetails.UserDetailsService> delegates)
    • Method Detail

      • loadUserByUsername

        public org.springframework.security.core.userdetails.UserDetails loadUserByUsername​(String s)
                                                                                     throws org.springframework.security.core.userdetails.UsernameNotFoundException,
                                                                                            org.springframework.dao.DataAccessException
        Specified by:
        loadUserByUsername in interface org.springframework.security.core.userdetails.UserDetailsService
        Throws:
        org.springframework.security.core.userdetails.UsernameNotFoundException
        org.springframework.dao.DataAccessException