Class ElbPreAuthenticatedGrantedAuthoritiesUserDetailsService

java.lang.Object
io.dialob.security.aws.elb.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 Summary

    Constructors
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ElbPreAuthenticatedGrantedAuthoritiesUserDetailsService

      public ElbPreAuthenticatedGrantedAuthoritiesUserDetailsService()
  • Method Details

    • 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.