public class BinaryAuthToken
extends org.jgroups.auth.AuthToken
SimpleToken, but uses a binary shared secret, instead of a case-insensitive string comparison.| Constructor and Description |
|---|
BinaryAuthToken() |
BinaryAuthToken(byte[] sharedSecret) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
authenticate(org.jgroups.auth.AuthToken token,
org.jgroups.Message message) |
String |
getName() |
byte[] |
getSharedSecret() |
void |
readFrom(DataInput input) |
int |
size() |
void |
writeTo(DataOutput output) |
public BinaryAuthToken()
public BinaryAuthToken(byte[] sharedSecret)
public byte[] getSharedSecret()
public boolean authenticate(org.jgroups.auth.AuthToken token,
org.jgroups.Message message)
authenticate in class org.jgroups.auth.AuthTokenpublic String getName()
getName in class org.jgroups.auth.AuthTokenpublic int size()
size in class org.jgroups.auth.AuthTokenpublic void writeTo(DataOutput output) throws IOException
IOExceptionpublic void readFrom(DataInput input) throws IOException
IOExceptionCopyright © 2022 JBoss by Red Hat. All rights reserved.