java.lang.Object
test.de.iip_ecosphere.platform.test.mqtt.moquette.Authenticator
All Implemented Interfaces:
io.moquette.broker.security.IAuthenticator

public class Authenticator extends Object implements io.moquette.broker.security.IAuthenticator
A simple static authenticator.
Author:
Holger Eichelberger, SSE
  • Field Details

  • Constructor Details

    • Authenticator

      public Authenticator()
  • Method Details

    • setBasicAuth

      static void setBasicAuth(String user, String password)
      Sets up a simple user and password authentication.
      Parameters:
      user - the user to add
      password - the plaintext password of the user
    • isInitialized

      public static boolean isInitialized()
      Returns whether this authenticator is initialized.
      Returns:
      true for initialized, false else
    • clear

      public static void clear()
      Clears this authenticator.
    • checkValid

      public boolean checkValid(String clientId, String user, byte[] password)
      Specified by:
      checkValid in interface io.moquette.broker.security.IAuthenticator