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() |
FixedMembershipToken(String token) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
authenticate(AuthToken token,
Message msg)
Check if I'm in memberList, too
|
String |
getName()
Used to return the full package and class name of the implementation.
|
boolean |
isInMembersList(IpAddress sender) |
static boolean |
match(IpAddress sender,
InetSocketAddress addr) |
void |
readFrom(DataInput in)
Read the state of the current object (including superclasses) from instream
Note that the input stream must not be closed
|
void |
setFixedMembersSeparator(String value) |
void |
setMemberList(String list) |
int |
size()
The size of the marshalled AuthToken
|
void |
writeTo(DataOutput out)
Write the entire state of the current object (including superclasses) to outstream.
|
public FixedMembershipToken()
public FixedMembershipToken(String token)
public String getName()
AuthTokenpublic void setFixedMembersSeparator(String value)
public boolean authenticate(AuthToken token, Message msg)
authenticate in class AuthTokentoken - the token sent by the joinermsg - the Message object containing the actual JOIN_REQpublic boolean isInMembersList(IpAddress sender)
public static boolean match(IpAddress sender, InetSocketAddress addr)
public void setMemberList(String list) throws UnknownHostException
UnknownHostExceptionpublic void writeTo(DataOutput out) throws Exception
StreamableExceptionpublic void readFrom(DataInput in) throws Exception
StreamableExceptionCopyright © 2025 JBoss, a division of Red Hat. All rights reserved.