mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-22 03: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