com.github.dactiv.showcase.service.account
类 CaptchaAuthenticationFilter.UsernamePasswordTokeExtend
java.lang.Object
org.apache.shiro.authc.UsernamePasswordToken
com.github.dactiv.showcase.service.account.CaptchaAuthenticationFilter.UsernamePasswordTokeExtend
- 所有已实现的接口:
- Serializable, org.apache.shiro.authc.AuthenticationToken, org.apache.shiro.authc.HostAuthenticationToken, org.apache.shiro.authc.RememberMeAuthenticationToken
- 包容类:
- CaptchaAuthenticationFilter
protected class CaptchaAuthenticationFilter.UsernamePasswordTokeExtend
- extends org.apache.shiro.authc.UsernamePasswordToken
UsernamePasswordToke扩展,添加一个rememberMeValue字段,获取提交上来的rememberMe值
根据该rememberMe值去设置Cookie的有效时间。
- 作者:
- maurice
- 另请参见:
- 序列化表格
| 从类 org.apache.shiro.authc.UsernamePasswordToken 继承的方法 |
clear, getCredentials, getHost, getPassword, getPrincipal, getUsername, isRememberMe, setHost, setPassword, setRememberMe, setUsername, toString |
CaptchaAuthenticationFilter.UsernamePasswordTokeExtend
public CaptchaAuthenticationFilter.UsernamePasswordTokeExtend()
CaptchaAuthenticationFilter.UsernamePasswordTokeExtend
public CaptchaAuthenticationFilter.UsernamePasswordTokeExtend(String username,
String password,
boolean rememberMe,
String host,
Integer rememberMeCookieValue)
getRememberMeCookieValue
public Integer getRememberMeCookieValue()
- 获取rememberMe cookie的有效时间
- 返回:
- Integer
setRememberMeCookieValue
public void setRememberMeCookieValue(Integer rememberMeCookieValue)
- 设置rememberMe cookie的有效时间
- 参数:
rememberMeCookieValue - cookie的有效时间
Copyright © 2013. All rights reserved.