Class ElbPreAuthenticatedGrantedAuthoritiesUserDetailsService

  • All Implemented Interfaces:
    org.springframework.security.core.userdetails.AuthenticationUserDetailsService<org.springframework.security.web.authentication.preauth.PreAuthenticatedAuthenticationToken>

    public class ElbPreAuthenticatedGrantedAuthoritiesUserDetailsService
    extends Object
    implements org.springframework.security.core.userdetails.AuthenticationUserDetailsService<org.springframework.security.web.authentication.preauth.PreAuthenticatedAuthenticationToken>
    • Constructor Detail

      • ElbPreAuthenticatedGrantedAuthoritiesUserDetailsService

        public ElbPreAuthenticatedGrantedAuthoritiesUserDetailsService()
    • Method Detail

      • loadUserDetails

        public final org.springframework.security.core.userdetails.UserDetails loadUserDetails​(org.springframework.security.web.authentication.preauth.PreAuthenticatedAuthenticationToken token)
        Get a UserDetails object based on the user name contained in the given token, and the GrantedAuthorities as returned by the GrantedAuthoritiesContainer implementation as returned by the token.getDetails() method.
        Specified by:
        loadUserDetails in interface org.springframework.security.core.userdetails.AuthenticationUserDetailsService<org.springframework.security.web.authentication.preauth.PreAuthenticatedAuthenticationToken>
      • createUserDetails

        protected org.springframework.security.core.userdetails.UserDetails createUserDetails​(org.springframework.security.core.Authentication token,
                                                                                              Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
        Creates the final UserDetails object. Can be overridden to customize the contents.
        Parameters:
        token - the authentication request token
        authorities - the pre-authenticated authorities.