public class JwtAuthorizationProcessingFilter
extends org.springframework.security.boot.biz.authentication.AuthenticationProcessingFilter
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
AUTHORIZATION_HEADER
HTTP Authorization header, equal to
X-Authorization |
static String |
AUTHORIZATION_PARAM
HTTP Authorization Param, equal to
token |
| 构造器和说明 |
|---|
JwtAuthorizationProcessingFilter() |
JwtAuthorizationProcessingFilter(List<String> ignorePatterns) |
| 限定符和类型 | 方法和说明 |
|---|---|
org.springframework.security.core.Authentication |
doAttemptAuthentication(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
doFilter(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse res,
javax.servlet.FilterChain chain) |
String |
getAuthorizationCookieName() |
String |
getAuthorizationHeaderName() |
String |
getAuthorizationParamName() |
protected String |
obtainToken(javax.servlet.http.HttpServletRequest request) |
protected boolean |
requiresAuthentication(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
setAuthorizationCookieName(String authorizationCookieName) |
void |
setAuthorizationHeaderName(String authorizationHeaderName) |
void |
setAuthorizationParamName(String authorizationParamName) |
protected void |
setDetails(javax.servlet.http.HttpServletRequest request,
org.springframework.security.authentication.AbstractAuthenticationToken authRequest) |
void |
setIgnoreRequestMatcher(List<String> ignorePatterns) |
void |
setIgnoreRequestMatchers(org.springframework.security.web.util.matcher.RequestMatcher... ignoreRequestMatchers) |
void |
setSessionAuthenticationStrategy(org.springframework.security.web.authentication.session.SessionAuthenticationStrategy sessionStrategy) |
attemptAuthentication, getAppChannelHeaderName, getAppIdHeaderName, getAppVersionHeaderName, getLatitudeHeaderName, getLongitudeHeaderName, getSignHeaderName, getUidHeaderName, obtainAppChannel, obtainAppId, obtainAppVersion, obtainLatitude, obtainLongitude, obtainSign, obtainUid, setAppChannelHeaderName, setAppIdHeaderName, setAppVersionHeaderName, setLatitudeHeaderName, setLongitudeHeaderName, setSignHeaderName, setUidHeaderNameafterPropertiesSet, getAllowSessionCreation, getAuthenticationManager, getFailureHandler, getRememberMeServices, getSuccessHandler, setAllowSessionCreation, setApplicationEventPublisher, setAuthenticationDetailsSource, setAuthenticationFailureHandler, setAuthenticationManager, setAuthenticationSuccessHandler, setContinueChainBeforeSuccessfulAuthentication, setFilterProcessesUrl, setMessageSource, setRememberMeServices, setRequiresAuthenticationRequestMatcher, successfulAuthentication, unsuccessfulAuthenticationpublic static final String AUTHORIZATION_PARAM
tokenprotected boolean requiresAuthentication(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
requiresAuthentication 在类中 org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilterpublic void doFilter(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse res,
javax.servlet.FilterChain chain)
throws IOException,
javax.servlet.ServletException
doFilter 在接口中 javax.servlet.FilterdoFilter 在类中 org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilterIOExceptionjavax.servlet.ServletExceptionpublic void setSessionAuthenticationStrategy(org.springframework.security.web.authentication.session.SessionAuthenticationStrategy sessionStrategy)
setSessionAuthenticationStrategy 在类中 org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilterpublic org.springframework.security.core.Authentication doAttemptAuthentication(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws org.springframework.security.core.AuthenticationException,
IOException,
javax.servlet.ServletException
doAttemptAuthentication 在类中 org.springframework.security.boot.biz.authentication.AuthenticationProcessingFilterorg.springframework.security.core.AuthenticationExceptionIOExceptionjavax.servlet.ServletExceptionprotected void setDetails(javax.servlet.http.HttpServletRequest request,
org.springframework.security.authentication.AbstractAuthenticationToken authRequest)
setDetails 在类中 org.springframework.security.boot.biz.authentication.AuthenticationProcessingFilterprotected String obtainToken(javax.servlet.http.HttpServletRequest request)
public void setIgnoreRequestMatchers(org.springframework.security.web.util.matcher.RequestMatcher... ignoreRequestMatchers)
public String getAuthorizationHeaderName()
public void setAuthorizationHeaderName(String authorizationHeaderName)
public String getAuthorizationParamName()
public void setAuthorizationParamName(String authorizationParamName)
public String getAuthorizationCookieName()
public void setAuthorizationCookieName(String authorizationCookieName)
Copyright © 2024 Pivotal Software, Inc.. All rights reserved.