public class JwtAuthenticatingFilter
extends org.apache.shiro.biz.web.filter.authc.TrustableRestAuthenticatingFilter
| 限定符和类型 | 字段和说明 |
|---|---|
protected static String |
AUTHORIZATION_HEADER
HTTP Authorization header, equal to
Authorization |
protected static String |
AUTHORIZATION_PARAM |
DEFAULT_ACCESS_CONTROL_ALLOW_METHODS, DEFAULT_CAPTCHA_PARAM, DEFAULT_RETRY_TIMES_KEY_ATTRIBUTE_NAME| 构造器和说明 |
|---|
JwtAuthenticatingFilter() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected org.apache.shiro.authc.AuthenticationToken |
createJwtToken(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response) |
protected String |
getAccessToken(javax.servlet.ServletRequest request) |
String |
getAuthorizationCookieName() |
String |
getAuthorizationHeaderName() |
String |
getAuthorizationParamName() |
JwtPayloadRepository |
getJwtPayloadRepository() |
protected boolean |
isAccessAllowed(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
Object mappedValue) |
boolean |
isCheckExpiry() |
protected boolean |
isJwtSubmission(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response) |
protected boolean |
onAccessDenied(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response) |
protected boolean |
onAccessFailure(org.apache.shiro.authc.AuthenticationToken token,
Exception e,
javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response) |
protected boolean |
onLoginSuccess(org.apache.shiro.authc.AuthenticationToken token,
org.apache.shiro.subject.Subject subject,
javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response) |
void |
setAuthorizationCookieName(String authorizationCookieName) |
void |
setAuthorizationHeaderName(String authorizationHeaderName) |
void |
setAuthorizationParamName(String authorizationParamName) |
void |
setCheckExpiry(boolean checkExpiry) |
void |
setJwtPayloadRepository(JwtPayloadRepository jwtPayloadRepository) |
createToken, executeLogin, getCaptcha, getCaptchaParam, getCaptchaResolver, getFailureCounter, getHost, getRetryTimesKeyAttribute, getRetryTimesWhenAccessDenied, isCaptchaEnabled, isOverRetryRemind, isOverRetryTimes, onAccessSuccess, onLoginFailure, setCaptchaEnabled, setCaptchaParam, setCaptchaResolver, setFailureCountAttribute, setFailureCounter, setRetryTimesKeyAttribute, setRetryTimesWhenAccessDeniedgetLoginListeners, getSessionDao, getSessionMaximumRestrict, getSessionRestrictedAttributeName, getSessionTerminalRestrict, getSubject, getUnauthorizedUrl, isSessionRestrictable, isSessionStateless, setLoginListeners, setSessionDao, setSessionMaximumRestrict, setSessionRestrictable, setSessionRestrictedAttributeName, setSessionStateless, setSessionTerminalRestrict, setUnauthorizedUrlcreateToken, getFailureKeyAttribute, getPassword, getPasswordParam, getRememberMeParam, getUsername, getUsernameParam, isLoginSubmission, isRememberMe, setFailureAttribute, setFailureKeyAttribute, setLoginUrl, setPasswordParam, setRememberMeParam, setUsernameParamgetSuccessUrl, issueSuccessRedirect, setSuccessUrlgetLoginUrl, isLoginRequest, onAccessDenied, onPreHandle, redirectToLogin, saveRequest, saveRequestAndRedirectToLogingetPathWithinApplication, isEnabled, pathsMatch, pathsMatch, preHandle, processPathConfigafterCompletion, doFilterInternal, executeChain, postHandledoFilter, getAlreadyFilteredAttributeName, isEnabled, isEnabled, setEnabled, shouldNotFilterdestroy, getFilterConfig, getInitParam, init, onFilterConfigSet, setFilterConfigprotected boolean isAccessAllowed(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
Object mappedValue)
isAccessAllowed 在类中 org.apache.shiro.biz.web.filter.authc.AbstractAuthenticatingFilterprotected boolean onAccessDenied(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response)
throws Exception
onAccessDenied 在类中 org.apache.shiro.biz.web.filter.authc.TrustableRestAuthenticatingFilterExceptionprotected boolean onLoginSuccess(org.apache.shiro.authc.AuthenticationToken token,
org.apache.shiro.subject.Subject subject,
javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response)
throws Exception
onLoginSuccess 在类中 org.apache.shiro.biz.web.filter.authc.TrustableRestAuthenticatingFilterExceptionprotected boolean onAccessFailure(org.apache.shiro.authc.AuthenticationToken token,
Exception e,
javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response)
onAccessFailure 在类中 org.apache.shiro.biz.web.filter.authc.AbstractTrustableAuthenticatingFilterprotected org.apache.shiro.authc.AuthenticationToken createJwtToken(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response)
protected boolean isJwtSubmission(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response)
protected String getAccessToken(javax.servlet.ServletRequest request)
public String getAuthorizationHeaderName()
public void setAuthorizationHeaderName(String authorizationHeaderName)
public String getAuthorizationParamName()
public void setAuthorizationParamName(String authorizationParamName)
public String getAuthorizationCookieName()
public void setAuthorizationCookieName(String authorizationCookieName)
public JwtPayloadRepository getJwtPayloadRepository()
public void setJwtPayloadRepository(JwtPayloadRepository jwtPayloadRepository)
public boolean isCheckExpiry()
public void setCheckExpiry(boolean checkExpiry)
Copyright © 2018. All rights reserved.