mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Jean-Noel Rouvignac
08.06.2015 b8c6b80da1cb6118167a934daa480eb381c59e0e
opendj-server-legacy/src/main/java/org/opends/server/extensions/GSSAPISASLMechanismHandler.java
@@ -420,8 +420,10 @@
    message.append("major code (").append(gex.getMajor()).append(") ")
        .append(gex.getMajorString());
    if(gex.getMinor() != 0)
    {
      message.append(", minor code (").append(gex.getMinor()).append(") ")
          .append(gex.getMinorString());
    }
    return message.toMessage();
  }
@@ -577,11 +579,12 @@
  private String getQOP(GSSAPISASLMechanismHandlerCfg configuration)
  {
    QualityOfProtection QOP = configuration.getQualityOfProtection();
    if (QOP.equals(QualityOfProtection.CONFIDENTIALITY))
    if (QOP.equals(QualityOfProtection.CONFIDENTIALITY)) {
      return "auth-conf";
    else if (QOP.equals(QualityOfProtection.INTEGRITY))
    } else if (QOP.equals(QualityOfProtection.INTEGRITY)) {
      return "auth-int";
    else
    } else {
      return "auth";
    }
  }
}