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

neil_a_wilson
04.58.2007 50eecfac301a49564cd88a2d8c180bbd72a6185d
opends/src/server/org/opends/server/core/BindOperation.java
@@ -113,6 +113,9 @@
  // The server SASL credentials provided to the client in the response.
  private ASN1OctetString serverSASLCredentials;
  // The authentication info for this bind operation.
  private AuthenticationInfo authInfo;
  // The authentication type used for this bind operation.
  private AuthenticationType authType;
@@ -751,6 +754,40 @@
  /**
   * Retrieves the authentication info that resulted from processing this bind
   * operation.  It will only be valid if the bind processing was successful.
   *
   * @return  The authentication info that resulted from processing this bind
   *          operation.
   */
  public final AuthenticationInfo getAuthenticationInfo()
  {
    assert debugEnter(CLASS_NAME, "getAuthenticationInfo");
    return authInfo;
  }
  /**
   * Specifies the authentication info that resulted from processing this bind
   * operation.  This method must only be called by SASL mechanism handlers
   * during the course of processing the {@code processSASLBind} method.
   *
   * @param  authInfo  The authentication info that resulted from processing
   *                   this bind operation.
   */
  public final void setAuthenticationInfo(AuthenticationInfo authInfo)
  {
    assert debugEnter(CLASS_NAME, "setAuthenticationInfo",
                      String.valueOf(authInfo));
    this.authInfo = authInfo;
  }
  /**
   * {@inheritDoc}
   */
  @Override()
@@ -979,7 +1016,7 @@
    // Wipe out any existing authentication for the client connection and create
    // a placeholder that will be used if the bind is successful.
    clientConnection.setUnauthenticated();
    AuthenticationInfo authInfo = null;
    authInfo = null;
    // Abandon any operations that may be in progress for the client.