customauthtoken.java

来自「jive3论坛开源 最新 有版主功能 jive3论坛开源 最新 有版主功能 」· Java 代码 · 共 30 行

JAVA
30
字号
import com.jivesoftware.base.AuthToken;import java.io.Serializable;/** * Implementation of the AuthToken interface. */public final class CustomAuthToken implements AuthToken, Serializable {    private long userID;    /**     * Constucts a new auth token with the specified userID.     *     * @param userID the userID to create an authToken token with.     */    protected CustomAuthToken(long userID) {        this.userID = userID;    }    // AuthToken Interface    public long getUserID() {        return userID;    }    public boolean isAnonymous() {        return userID == -1;    }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?