e69384d312f3f7de80835c70f9853308c8cc4b0c.svn-base
1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/**
* Copyright © 2015-2018 ODM All rights reserved.
*/
package com.thinkgem.jeesite.modules.sys.security;
/**
* 用户和密码(包含验证码)令牌类
* @author ThinkGem
* @version 2013-5-19
*/
public class UsernamePasswordToken extends org.apache.shiro.authc.UsernamePasswordToken {
private static final long serialVersionUID = 1L;
private String captcha;
private boolean mobileLogin;
private String isGTY = "0";
public UsernamePasswordToken() {
super();
}
public UsernamePasswordToken(String username, char[] password,
boolean rememberMe, String host, String captcha, boolean mobileLogin, String isGTY) {
super(username, password, rememberMe, host);
this.captcha = captcha;
this.mobileLogin = mobileLogin;
this.isGTY = isGTY;
}
// public UsernamePasswordToken(String username, char[] password, String host, boolean rememberMe, boolean isGTY){
// super(username, password, rememberMe, host);
// this.isGTY = isGTY;
// }
public String getCaptcha() {
return captcha;
}
public void setCaptcha(String captcha) {
this.captcha = captcha;
}
public boolean isMobileLogin() {
return mobileLogin;
}
public String isGTY() {
return isGTY;
}
public void setGTY(String isGTY) {
this.isGTY = isGTY;
}
@Override
public String toString() {
// TODO Auto-generated method stub
return isGTY+" "+super.getPassword();
}
}