Class BinaryAuthToken
java.lang.Object
org.jgroups.auth.AuthToken
org.jboss.as.clustering.jgroups.auth.BinaryAuthToken
- All Implemented Interfaces:
org.jgroups.util.Streamable
- Direct Known Subclasses:
CipherAuthToken
public class BinaryAuthToken
extends org.jgroups.auth.AuthToken
An AUTH token, analogous to
org.jgroups.auth.SimpleToken, but uses a binary shared secret, instead of a case-insensitive string comparison.- Author:
- Paul Ferraro
-
Field Summary
Fields inherited from class org.jgroups.auth.AuthToken
auth, log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanauthenticate(org.jgroups.auth.AuthToken token, org.jgroups.Message message) getName()byte[]voidintsize()voidwriteTo(DataOutput output) Methods inherited from class org.jgroups.auth.AuthToken
destroy, init, setAuth, start, stop
-
Constructor Details
-
BinaryAuthToken
public BinaryAuthToken() -
BinaryAuthToken
public BinaryAuthToken(byte[] sharedSecret)
-
-
Method Details
-
authenticate
public boolean authenticate(org.jgroups.auth.AuthToken token, org.jgroups.Message message) - Specified by:
authenticatein classorg.jgroups.auth.AuthToken
-
getName
- Specified by:
getNamein classorg.jgroups.auth.AuthToken
-
size
public int size()- Specified by:
sizein classorg.jgroups.auth.AuthToken
-
writeTo
- Throws:
IOException
-
readFrom
- Throws:
IOException