public class NegotiateAuthenticationFilter
extends org.apache.shiro.web.filter.authc.AuthenticatingFilter
DEFAULT_SUCCESS_URL
DEFAULT_LOGIN_URL, GET_METHOD, POST_METHOD
appliedPaths, pathMatcher
Constructor and Description |
---|
NegotiateAuthenticationFilter()
Instantiates a new negotiate authentication filter.
|
Modifier and Type | Method and Description |
---|---|
protected org.apache.shiro.authc.AuthenticationToken |
createToken(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response) |
String |
getFailureKeyAttribute()
Gets the failure key attribute.
|
String |
getRememberMeParam()
Gets the remember me param.
|
protected boolean |
isRememberMe(javax.servlet.ServletRequest request) |
protected boolean |
onAccessDenied(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response) |
protected boolean |
onLoginFailure(org.apache.shiro.authc.AuthenticationToken token,
org.apache.shiro.authc.AuthenticationException 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) |
protected void |
setFailureAttribute(javax.servlet.ServletRequest request,
org.apache.shiro.authc.AuthenticationException ae)
Sets the failure attribute.
|
void |
setFailureKeyAttribute(String value)
Sets the failure key attribute.
|
void |
setRememberMeParam(String value)
Sets the request parameter name to look for when acquiring the rememberMe boolean value.
|
cleanup, createToken, createToken, executeLogin, getHost, isAccessAllowed, isPermissive
getSuccessUrl, issueSuccessRedirect, setSuccessUrl
getLoginUrl, getSubject, isLoginRequest, onAccessDenied, onPreHandle, redirectToLogin, saveRequest, saveRequestAndRedirectToLogin, setLoginUrl
getPathWithinApplication, isEnabled, pathsMatch, pathsMatch, preHandle, processPathConfig
afterCompletion, doFilterInternal, executeChain, postHandle
doFilter, getAlreadyFilteredAttributeName, isEnabled, isEnabled, setEnabled, shouldNotFilter
getName, setName, toStringBuilder
destroy, getFilterConfig, getInitParam, init, onFilterConfigSet, setFilterConfig
public NegotiateAuthenticationFilter()
public String getRememberMeParam()
public void setRememberMeParam(String value)
rememberMe
.
true
if the parameter value equals any of those supported by
WebUtils.isTrue(request,value)
, false
otherwise.value
- the name of the request param to check for acquiring the rememberMe boolean value.protected boolean isRememberMe(javax.servlet.ServletRequest request)
isRememberMe
in class org.apache.shiro.web.filter.authc.AuthenticatingFilter
protected org.apache.shiro.authc.AuthenticationToken createToken(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response)
createToken
in class org.apache.shiro.web.filter.authc.AuthenticatingFilter
protected 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
in class org.apache.shiro.web.filter.authc.AuthenticatingFilter
Exception
protected boolean onLoginFailure(org.apache.shiro.authc.AuthenticationToken token, org.apache.shiro.authc.AuthenticationException e, javax.servlet.ServletRequest request, javax.servlet.ServletResponse response)
onLoginFailure
in class org.apache.shiro.web.filter.authc.AuthenticatingFilter
protected void setFailureAttribute(javax.servlet.ServletRequest request, org.apache.shiro.authc.AuthenticationException ae)
request
- the requestae
- the aepublic String getFailureKeyAttribute()
public void setFailureKeyAttribute(String value)
value
- the new failure key attributeCopyright © 2010–2015 com.github.dblock. All rights reserved.