All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.wf.jwtp.provider.Token Maven / Gradle / Ivy

The newest version!
package org.wf.jwtp.provider;

import java.util.Date;

/**
 * Created by wangfan on 2018-12-28 上午 9:21.
 */
public class Token {

    private Integer tokenId;  // 自增主键

    private String accessToken;  // token

    private String userId;  // 用户id

    private String[] permissions;  // 用户权限

    private String[] roles;  // 用户角色

    // private String tokenKey;  // 生成token时的key

    private String refreshToken;  // 暂时没用

    private Date expireTime;  // 过期时间

    private Date createTime;

    private Date updateTime;

    public Integer getTokenId() {
        return tokenId;
    }

    public void setTokenId(Integer tokenId) {
        this.tokenId = tokenId;
    }

    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String[] getPermissions() {
        return permissions;
    }

    public void setPermissions(String[] permissions) {
        this.permissions = permissions;
    }

    public String[] getRoles() {
        return roles;
    }

    public void setRoles(String[] roles) {
        this.roles = roles;
    }

    /*public String getTokenKey() {
        return tokenKey;
    }

    public void setTokenKey(String tokenKey) {
        this.tokenKey = tokenKey;
    }*/

    public String getRefreshToken() {
        return refreshToken;
    }

    public void setRefreshToken(String refreshToken) {
        this.refreshToken = refreshToken;
    }

    public Date getExpireTime() {
        return expireTime;
    }

    public void setExpireTime(Date expireTime) {
        this.expireTime = expireTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy