📄 customauthtoken.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 + -