AuthenticationToken.java 922 Bytes
Newer Older
licc's avatar
licc committed
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
package com.project.shiro.util;

import org.apache.shiro.authc.UsernamePasswordToken;

/**
 * 登录令牌
 */
public class AuthenticationToken extends UsernamePasswordToken {

    private static final long serialVersionUID = 4628652632307774263L;

    //验证码ID
    private String captchaId;

    //验证码
    private String captcha;

    //ip保留
    public AuthenticationToken(String loginName, String password, boolean remeberMe, String ip, String captchaId, String caprcha) {
        super(loginName, password, remeberMe);
        this.captchaId = captchaId;
        this.captcha = caprcha;
    }

    public String getCaptchaId() {
        return captchaId;
    }

    public void setCaptchaId(String captchaId) {
        this.captchaId = captchaId;
    }

    public String getCaptcha() {
        return captcha;
    }

    public void setCaptcha(String captcha) {
        this.captcha = captcha;
    }

}