Interface SimpleAuthenticator

  • All Superinterfaces:
    Authenticator
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface SimpleAuthenticator
    extends Authenticator
    Interface for the simple authentication of MQTT clients.

    Simple authentication only uses CONNECT and CONNACK but no AUTH packets. This means:

    • it does not support challenge/response style authentication
    • it does not support re-authentication

    An SimpleAuthenticator can be provided by an AuthenticatorProvider.

    If an implementation stores state, an object of the implementation can not be shared by different clients. If no state is stored, the implementation has to be thread safe if it is shared by different clients.

    Since:
    4.0.0, CE 2019.1