public abstract class AuthToken extends java.lang.Object implements Streamable
构造器和说明 |
---|
AuthToken() |
限定符和类型 | 方法和说明 |
---|---|
abstract boolean |
authenticate(AuthToken token,
Message msg)
This method should be implemented to perform the actual authentication of joining members.
|
abstract java.lang.String |
getName()
Used to return the full package and class name of the implementation.
|
void |
init() |
void |
setAuth(AUTH auth) |
abstract int |
size()
The size of the marshalled AuthToken
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
readFrom, writeTo
public void setAuth(AUTH auth)
public void init()
public abstract java.lang.String getName()
public abstract int size()
public abstract boolean authenticate(AuthToken token, Message msg)
token
- the token sent by the joinermsg
- the Message object containing the actual JOIN_REQ