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.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 void init() throws java.lang.Exception
public boolean authenticate(AuthToken token, Message msg)
AuthToken
authenticate
in class 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
Copyright © 1998-2020 Red Hat. All Rights Reserved.