shiro (六) spring结合 -- 扩展UsernamePasswordToken

package com.miv.shiro.common;

import org.apache.shiro.authc.UsernamePasswordToken;

/**

 * 功能描述

 * 

 * <pre>

 * 特殊说明

 *  扩展传入参数

 * </pre>

 * 

 * @author R20962

 * @create Aug 2, 2012

 * 

 */

public class MIVshiroToken extends UsernamePasswordToken {

    /**

     * 

     */

    private static final long serialVersionUID = 1L;

    private Integer ROLE_CODE = null;

    public MIVshiroToken(String loginName, String password, Integer ROLE_CODE, boolean flag) {

        super(loginName, password, flag);

        this.ROLE_CODE = ROLE_CODE;

    }

    public Integer getROLE_CODE() {

        return ROLE_CODE;

    }

}

相关推荐