public class RegexMembership extends AuthToken
限定符和类型 | 字段和说明 |
---|---|
protected boolean |
match_ip_address |
protected boolean |
match_logical_name |
protected java.lang.String |
match_string |
protected java.util.regex.Pattern |
pattern |
构造器和说明 |
---|
RegexMembership() |
限定符和类型 | 方法和说明 |
---|---|
boolean |
authenticate(AuthToken token,
Message msg)
This method should be implemented to perform the actual authentication of joining members.
|
java.lang.String |
getName()
Used to return the full package and class name of the implementation.
|
void |
init() |
void |
readFrom(java.io.DataInput in)
Required to deserialize the object when read in from the wire
|
int |
size()
The size of the marshalled AuthToken
|
void |
writeTo(java.io.DataOutput out)
Write the entire state of the current object (including superclasses) to outstream.
|
protected java.lang.String match_string
protected boolean match_ip_address
protected boolean match_logical_name
protected java.util.regex.Pattern pattern
public java.lang.String getName()
AuthToken
public boolean authenticate(AuthToken token, Message msg)
AuthToken
authenticate
在类中 AuthToken
token
- the token sent by the joinermsg
- the Message object containing the actual JOIN_REQpublic void writeTo(java.io.DataOutput out) throws java.lang.Exception
Streamable
java.lang.Exception
public void readFrom(java.io.DataInput in) throws java.lang.Exception
in
- java.lang.Exception