Interface SimpleAuthOutput

All Superinterfaces:
AsyncOutput<SimpleAuthOutput>, SimpleAsyncOutput<SimpleAuthOutput>

@DoNotImplement
public interface SimpleAuthOutput
extends AsyncOutput<SimpleAuthOutput>
Output parameter provided to SimpleAuthenticator.onConnect(SimpleAuthInput, SimpleAuthOutput).

It can be used to

  • Authenticate the client successfully OR
  • Fail authentication OR
  • Delegate the decision to the next extension

Exactly one of the decisive methods must be called:

Subsequent calls will fail with an UnsupportedOperationException.

The default topic permissions only apply if the client is authenticated successfully.

In case of a failed authentication a CONNACK packet with the appropriate reason code is sent to the client.

Since:
4.0.0, CE 2019.1