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.AuthTokenAn AUTH token, analogous toorg.jgroups.auth.SimpleToken, but uses a binary shared secret, instead of a case-insensitive string comparison.- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description BinaryAuthToken()BinaryAuthToken(byte[] sharedSecret)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanauthenticate(org.jgroups.auth.AuthToken token, org.jgroups.Message message)StringgetName()byte[]getSharedSecret()voidreadFrom(DataInput input)intsize()voidwriteTo(DataOutput output)
-
-
-
Method Detail
-
getSharedSecret
public byte[] getSharedSecret()
-
authenticate
public boolean authenticate(org.jgroups.auth.AuthToken token, org.jgroups.Message message)- Specified by:
authenticatein classorg.jgroups.auth.AuthToken
-
getName
public String getName()
- Specified by:
getNamein classorg.jgroups.auth.AuthToken
-
size
public int size()
- Specified by:
sizein classorg.jgroups.auth.AuthToken
-
writeTo
public void writeTo(DataOutput output) throws IOException
- Throws:
IOException
-
readFrom
public void readFrom(DataInput input) throws IOException
- Throws:
IOException
-
-