⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 customauthtoken.java

📁 jive3论坛开源 最新 有版主功能 jive3论坛开源 最新 有版主功能 jive3论坛开源 最新 有版主功能
💻 JAVA
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -