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
另请参见:
序列化表格

构造方法摘要
CaptchaAuthenticationFilter.UsernamePasswordTokeExtend()
           
CaptchaAuthenticationFilter.UsernamePasswordTokeExtend(String username, String password, boolean rememberMe, String host, Integer rememberMeCookieValue)
           
 
方法摘要
 Integer getRememberMeCookieValue()
          获取rememberMe cookie的有效时间
 void setRememberMeCookieValue(Integer rememberMeCookieValue)
          设置rememberMe cookie的有效时间
 
从类 org.apache.shiro.authc.UsernamePasswordToken 继承的方法
clear, getCredentials, getHost, getPassword, getPrincipal, getUsername, isRememberMe, setHost, setPassword, setRememberMe, setUsername, toString
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

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.