Class JwtAuthenticationFilter
- java.lang.Object
-
- org.springframework.web.filter.GenericFilterBean
-
- org.springframework.web.filter.OncePerRequestFilter
-
- com.atlassian.connect.spring.internal.auth.jwt.JwtAuthenticationFilter
-
- All Implemented Interfaces:
javax.servlet.Filter
,org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanNameAware
,org.springframework.beans.factory.DisposableBean
,org.springframework.beans.factory.InitializingBean
,org.springframework.context.EnvironmentAware
,org.springframework.core.env.EnvironmentCapable
,org.springframework.web.context.ServletContextAware
public class JwtAuthenticationFilter extends org.springframework.web.filter.OncePerRequestFilter
A servlet filter that extracts JSON Web Tokens from the Authorization request header and from thejwt
query parameter for use as authentication tokens.
-
-
Constructor Summary
Constructors Constructor Description JwtAuthenticationFilter(org.springframework.security.authentication.AuthenticationManager authenticationManager, AddonDescriptorLoader addonDescriptorLoader, AtlassianConnectProperties atlassianConnectProperties, org.springframework.boot.autoconfigure.web.ServerProperties serverProperties, LifecycleURLHelper lifecycleURLHelper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doFilterInternal(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain filterChain)
-
Methods inherited from class org.springframework.web.filter.OncePerRequestFilter
doFilter, doFilterNestedErrorDispatch, getAlreadyFilteredAttributeName, isAsyncDispatch, isAsyncStarted, shouldNotFilter, shouldNotFilterAsyncDispatch, shouldNotFilterErrorDispatch
-
-
-
-
Constructor Detail
-
JwtAuthenticationFilter
public JwtAuthenticationFilter(org.springframework.security.authentication.AuthenticationManager authenticationManager, AddonDescriptorLoader addonDescriptorLoader, AtlassianConnectProperties atlassianConnectProperties, org.springframework.boot.autoconfigure.web.ServerProperties serverProperties, LifecycleURLHelper lifecycleURLHelper)
-
-
Method Detail
-
doFilterInternal
protected void doFilterInternal(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain filterChain) throws javax.servlet.ServletException, IOException
- Specified by:
doFilterInternal
in classorg.springframework.web.filter.OncePerRequestFilter
- Throws:
javax.servlet.ServletException
IOException
-
-