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 Constructor Description ElbPreAuthenticatedGrantedAuthoritiesUserDetailsService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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.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.
-
-
-
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:
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.
-
-