Add comment to ScramMechanism.getChannelBindingName()

This commit is contained in:
Florian Schmaus 2017-03-18 13:37:54 +01:00
parent 140e8faae3
commit 3d1cf61caf
1 changed files with 3 additions and 0 deletions

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.