|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jgroups.auth.AuthToken
org.jgroups.auth.RegexMembership
public class RegexMembership
Matches the IP address or logical name of a joiner against a regular expression and accepts or rejects based on pattern matching
| Field Summary | |
|---|---|
protected boolean |
match_ip_address
|
protected boolean |
match_logical_name
|
protected java.lang.String |
match_string
|
protected java.util.regex.Pattern |
pattern
|
| Fields inherited from class org.jgroups.auth.AuthToken |
|---|
auth, log |
| Constructor Summary | |
|---|---|
RegexMembership()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.jgroups.auth.AuthToken |
|---|
setAuth |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String match_string
protected boolean match_ip_address
protected boolean match_logical_name
protected java.util.regex.Pattern pattern
| Constructor Detail |
|---|
public RegexMembership()
| Method Detail |
|---|
public java.lang.String getName()
AuthToken
getName in class AuthTokenpublic void init()
init in class AuthToken
public boolean authenticate(AuthToken token,
Message msg)
AuthToken
authenticate in class AuthTokentoken - the token sent by the joinermsg - the Message object containing the actual JOIN_REQ
public 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.Exceptionpublic int size()
AuthToken
size in class AuthToken
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||