Class AuthToken

java.lang.Object
org.jgroups.auth.AuthToken
All Implemented Interfaces:
Serializable, Streamable
Direct Known Subclasses:
FixedMembershipToken, MD5Token, RegexMembership, SimpleToken, X509Token

public abstract class AuthToken extends Object implements Serializable, Streamable
Abstract AuthToken class used by implementations of AUTH, e.g. SimpleToken, X509Token
Author:
Chris Mills
See Also:
  • Field Details

    • log

      protected final Log log
    • auth

      protected transient AUTH auth
      A reference to AUTH
  • Constructor Details

    • AuthToken

      public AuthToken()
  • Method Details

    • setAuth

      public void setAuth(AUTH auth)
    • init

      public void init()
    • getName

      public abstract String getName()
      Used to return the full package and class name of the implementation. This is used by the AUTH protocol to create an instance of the implementation.
      Returns:
      a java.lang.String object of the package and class name
    • authenticate

      public abstract boolean authenticate(AuthToken token, Message msg)
      This method should be implemented to perform the actual authentication of joining members.
      Parameters:
      token - the token sent by the joiner
      msg - the Message object containing the actual JOIN_REQ
      Returns:
      true if authenticaion passed or false if it failed.