mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-25 15:52:06 +01:00
Add comment to ScramMechanism.getChannelBindingName()
This commit is contained in:
parent
140e8faae3
commit
3d1cf61caf
1 changed files with 3 additions and 0 deletions
|
@ -249,6 +249,9 @@ public abstract class ScramMechanism extends SASLMechanism {
|
|||
}
|
||||
|
||||
protected String getChannelBindingName() {
|
||||
// Check if we are using TLS and if a "-PLUS" variant of this mechanism is enabled. Assuming that the "-PLUS"
|
||||
// variants always have precedence before the non-"-PLUS" variants this means that the server did not announce
|
||||
// the "-PLUS" variant, as otherwise we would have tried it.
|
||||
if (sslSession != null && connectionConfiguration.isEnabledSaslMechanism(getName() + "-PLUS")) {
|
||||
// Announce that we support Channel Binding, i.e., the '-PLUS' flavor of this SASL mechanism, but that we
|
||||
// believe the server does not.
|
||||
|
|
Loading…
Reference in a new issue