Package io.dialob.security.aws.elb
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 TypeMethodDescriptionprotected org.springframework.security.core.userdetails.UserDetailscreateUserDetails(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.UserDetailsloadUserDetails(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.
-
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:
loadUserDetailsin interfaceorg.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 tokenauthorities- the pre-authenticated authorities.
-