Package io.dialob.security.aws.elb
Class ElbAuthenticationStrategy
- java.lang.Object
-
- io.dialob.security.aws.elb.ElbAuthenticationStrategy
-
- All Implemented Interfaces:
AuthenticationStrategy
public class ElbAuthenticationStrategy extends Object implements AuthenticationStrategy
-
-
Constructor Summary
Constructors Constructor Description ElbAuthenticationStrategy(org.springframework.security.core.authority.mapping.GrantedAuthoritiesMapper grantedAuthoritiesMapper, com.nimbusds.jwt.proc.JWTProcessor jwtProcessor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanconfigure(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder auth)org.springframework.security.config.annotation.web.builders.HttpSecurityconfigureAuthentication(org.springframework.security.config.annotation.web.builders.HttpSecurity http, org.springframework.security.authentication.AuthenticationManager authenticationManager)protected ElbBasedPreAuthenticatedWebAuthenticationDetailsSourcecreateAuthenticationDetailsSource()protected org.springframework.security.web.authentication.preauth.RequestHeaderAuthenticationFiltercreateAuthenticationFilter(org.springframework.security.authentication.AuthenticationManager authenticationManager)io.dialob.security.user.CurrentUserProvidercurrentUserProviderBean()org.springframework.security.core.authority.mapping.GrantedAuthoritiesMappergetGrantedAuthoritiesMapper()com.nimbusds.jwt.proc.JWTProcessorgetJwtProcessor()
-
-
-
Method Detail
-
configureAuthentication
public org.springframework.security.config.annotation.web.builders.HttpSecurity configureAuthentication(@NonNull org.springframework.security.config.annotation.web.builders.HttpSecurity http, @NonNull org.springframework.security.authentication.AuthenticationManager authenticationManager) throws Exception- Specified by:
configureAuthenticationin interfaceAuthenticationStrategy- Throws:
Exception
-
createAuthenticationFilter
@NonNull protected org.springframework.security.web.authentication.preauth.RequestHeaderAuthenticationFilter createAuthenticationFilter(@NonNull org.springframework.security.authentication.AuthenticationManager authenticationManager)
-
getGrantedAuthoritiesMapper
public org.springframework.security.core.authority.mapping.GrantedAuthoritiesMapper getGrantedAuthoritiesMapper()
-
getJwtProcessor
public com.nimbusds.jwt.proc.JWTProcessor getJwtProcessor()
-
createAuthenticationDetailsSource
@NonNull protected ElbBasedPreAuthenticatedWebAuthenticationDetailsSource createAuthenticationDetailsSource()
-
configure
public boolean configure(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder auth) throws Exception- Specified by:
configurein interfaceAuthenticationStrategy- Throws:
Exception
-
currentUserProviderBean
public io.dialob.security.user.CurrentUserProvider currentUserProviderBean()
- Specified by:
currentUserProviderBeanin interfaceAuthenticationStrategy
-
-