public class JwtTokenAuthenticationFilter
extends org.springframework.web.filter.OncePerRequestFilter
Constructor and Description |
---|
JwtTokenAuthenticationFilter() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
protected void |
doFilterInternal(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain filterChain) |
protected void |
handleNonce(javax.servlet.http.HttpServletRequest request,
org.springframework.security.core.Authentication authentication)
Handles nonce functionality.
|
boolean |
isRequireNonce() |
void |
setRequireNonce(boolean requireNonce) |
doFilter, doFilterNestedErrorDispatch, getAlreadyFilteredAttributeName, isAsyncDispatch, isAsyncStarted, shouldNotFilter, shouldNotFilterAsyncDispatch, shouldNotFilterErrorDispatch
public void afterPropertiesSet()
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
afterPropertiesSet
in class org.springframework.web.filter.GenericFilterBean
protected void doFilterInternal(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain filterChain) throws javax.servlet.ServletException, IOException
doFilterInternal
in class org.springframework.web.filter.OncePerRequestFilter
javax.servlet.ServletException
IOException
public boolean isRequireNonce()
public void setRequireNonce(boolean requireNonce)
protected void handleNonce(javax.servlet.http.HttpServletRequest request, org.springframework.security.core.Authentication authentication)
request
- HTTP request to acquire the nonce value (from header or
parameter)authentication
- Authentication object with user detailsCopyright © 2020. All rights reserved.