1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-22 10:37:59 +01:00

Add comment to ScramMechanism.getChannelBindingName()

This commit is contained in:
Florian Schmaus 2017-03-18 13:37:54 +01:00
parent 140e8faae3
commit 3d1cf61caf

View file

@ -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.