diff --git a/src/main/java/com/hivemq/extension/sdk/api/auth/parameter/SimpleAuthOutput.java b/src/main/java/com/hivemq/extension/sdk/api/auth/parameter/SimpleAuthOutput.java index c49eb7e..f20542e 100644 --- a/src/main/java/com/hivemq/extension/sdk/api/auth/parameter/SimpleAuthOutput.java +++ b/src/main/java/com/hivemq/extension/sdk/api/auth/parameter/SimpleAuthOutput.java @@ -74,6 +74,20 @@ public interface SimpleAuthOutput extends AsyncOutput { */ void authenticateSuccessfully(); + /** + * Successfully authenticates the client. + *

+ * A CONNACK packet with reason code {@link ConnackReasonCode#SUCCESS SUCCESS} is sent to the client. + *

+ * This is a final decision, authenticators of the next extensions (with lower priority) are not called. + * + * @param clearPasswordAfterAuth defines if the password will be cleared after authentication. Default is false + * @throws UnsupportedOperationException When authenticateSuccessfully, failAuthentication or nextExtensionOrDefault + * has already been called. + * @since 4.30.0, CE 2019.1 + */ + void authenticateSuccessfully(boolean clearPasswordAfterAuth); + /** * Fails the authentication of the client. *