Class 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 SimpleToken, but uses a binary shared secret, instead of a case-insensitive string comparison.
    Author:
    Paul Ferraro
    • Constructor Detail

      • BinaryAuthToken

        public BinaryAuthToken()
      • BinaryAuthToken

        public BinaryAuthToken​(byte[] sharedSecret)
    • Method Detail

      • 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