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
  • Constructor Details

    • BinaryAuthToken

      public BinaryAuthToken()
    • BinaryAuthToken

      public BinaryAuthToken(byte[] sharedSecret)
  • Method Details

    • getSharedSecret

      public byte[] getSharedSecret()
    • authenticate

      public boolean authenticate(org.jgroups.auth.AuthToken token, org.jgroups.Message message)
      Specified by:
      authenticate in class org.jgroups.auth.AuthToken
    • getName

      public String getName()
      Specified by:
      getName in class org.jgroups.auth.AuthToken
    • size

      public int size()
      Specified by:
      size in class org.jgroups.auth.AuthToken
    • writeTo

      public void writeTo(DataOutput output) throws IOException
      Throws:
      IOException
    • readFrom

      public void readFrom(DataInput input) throws IOException
      Throws:
      IOException