public class FixedMembershipToken extends AuthToken
The FixedMemberShipToken object predefines a list of IP addresses and ports that can join the group.
Configuration parameters for this example are shown below:
Constructor and Description |
---|
FixedMembershipToken() |
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.
|
String |
getName()
Used to return the full package and class name of the implementation.
|
void |
readFrom(DataInput in)
Required to deserialize the object when read in from the wire
|
void |
setFixedMembersSeparator(String value) |
void |
setMemberList(String list) |
void |
writeTo(DataOutput out)
Required to serialize the object to pass across the wire
|
public String getName()
AuthToken
public void setFixedMembersSeparator(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_REQpublic void setMemberList(String list)
public void writeTo(DataOutput out) throws Exception
out
- IOException
Exception
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.