Skip to content

Commit

Permalink
Mention Anonymous SASL mechanism requires RabbitMQ 4.0+
Browse files Browse the repository at this point in the history
References #1405
  • Loading branch information
acogoluegnes committed Sep 16, 2024
1 parent 8fb3ccf commit 1a284b5
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions src/main/java/com/rabbitmq/client/impl/AnonymousMechanism.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (c) 2007-2023 Broadcom. All Rights Reserved. The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
// Copyright (c) 2007-2023 Broadcom. All Rights Reserved. The term "Broadcom" refers to Broadcom
// Inc. and/or its subsidiaries.
//
// This software, the RabbitMQ Java client library, is triple-licensed under the
// Mozilla Public License 2.0 ("MPL"), the GNU General Public License version 2
Expand All @@ -20,15 +21,17 @@

/**
* The ANONYMOUS auth mechanism
*
* <p>Requires RabbitMQ 4.0 or more.
*/
public class AnonymousMechanism implements SaslMechanism {
@Override
public String getName() {
return "ANONYMOUS";
}
@Override
public String getName() {
return "ANONYMOUS";
}

@Override
public LongString handleChallenge(LongString challenge, String username, String password) {
return LongStringHelper.asLongString("");
}
@Override
public LongString handleChallenge(LongString challenge, String username, String password) {
return LongStringHelper.asLongString("");
}
}

0 comments on commit 1a284b5

Please sign in to comment.