Skip to content

Commit

Permalink
Merge pull request #173 from hivemq/improvement/clear-auth-password-2…
Browse files Browse the repository at this point in the history
…6231/latest

[latest] Add overload SimpleAuthOutput.authenticateSuccessfully with boolean parameter to clear auth passwords after authentication
  • Loading branch information
sfrehse authored Oct 28, 2024
2 parents 9e9c4f7 + 061643e commit e7906a4
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,20 @@ public interface SimpleAuthOutput extends AsyncOutput<SimpleAuthOutput> {
*/
void authenticateSuccessfully();

/**
* Successfully authenticates the client.
* <p>
* A CONNACK packet with reason code {@link ConnackReasonCode#SUCCESS SUCCESS} is sent to the client.
* <p>
* 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.
* @throws UnsupportedOperationException When authenticateSuccessfully, failAuthentication or nextExtensionOrDefault
* has already been called.
* @since 4.34.0, 4.28.8 CE 2024.8
*/
void authenticateSuccessfully(boolean clearPasswordAfterAuth);

/**
* Fails the authentication of the client.
* <p>
Expand Down

0 comments on commit e7906a4

Please sign in to comment.