|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jgroups.auth.AuthToken org.jgroups.auth.FixedMembershipToken
public class FixedMembershipToken
The FixedMemberShipToken object predefines a list of IP addresses and ports that can join the group.
Configuration parameters for this example are shown below:
Field Summary |
---|
Fields inherited from class org.jgroups.auth.AuthToken |
---|
auth, log |
Constructor Summary | |
---|---|
FixedMembershipToken()
|
|
FixedMembershipToken(java.lang.String token)
|
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 |
readFrom(java.io.DataInput in)
Required to deserialize the object when read in from the wire |
void |
setFixedMembersSeparator(java.lang.String value)
|
void |
setMemberList(java.lang.String list)
|
int |
size()
The size of the marshalled AuthToken |
void |
writeTo(java.io.DataOutput out)
Required to serialize the object to pass across the wire |
Methods inherited from class org.jgroups.auth.AuthToken |
---|
init, setAuth |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FixedMembershipToken()
public FixedMembershipToken(java.lang.String token)
Method Detail |
---|
public java.lang.String getName()
AuthToken
getName
in class AuthToken
public void setFixedMembersSeparator(java.lang.String value)
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_REQ
public void setMemberList(java.lang.String list)
public void writeTo(java.io.DataOutput out) throws java.lang.Exception
out
-
java.io.IOException
java.lang.Exception
public void readFrom(java.io.DataInput in) throws java.lang.Exception
in
-
java.lang.Exception
public int size()
AuthToken
size
in class AuthToken
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |