public class RegexMembership extends AuthToken
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
match_ip_address |
protected boolean |
match_logical_name |
protected java.lang.String |
match_string |
protected java.util.regex.Pattern |
pattern |
| Constructor and Description |
|---|
RegexMembership() |
| Modifier and Type | Method and Description |
|---|---|
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.DataInputStream in)
Required to deserialize the object when read in from the wire
|
void |
writeTo(java.io.DataOutputStream 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()
AuthTokenpublic boolean authenticate(AuthToken token, Message msg)
AuthTokenauthenticate in class AuthTokentoken - the token sent by the joinermsg - the Message object containing the actual JOIN_REQpublic void writeTo(java.io.DataOutputStream out)
throws java.io.IOException
Streamablejava.io.IOExceptionpublic void readFrom(java.io.DataInputStream in)
throws java.io.IOException,
java.lang.IllegalAccessException,
java.lang.InstantiationException
in - java.io.IOExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionCopyright ? 1998-2009 Bela Ban / Red Hat. All Rights Reserved.