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

Matthew Swift
15.54.2011 3bd757820d295d1bf98c2dccbae18421f8b47a0b
opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/requests/GenericBindRequest.java
@@ -23,6 +23,7 @@
 *
 *
 *      Copyright 2009 Sun Microsystems, Inc.
 *      Portions copyright 2011 ForgeRock AS
 */
package org.forgerock.opendj.ldap.requests;
@@ -70,10 +71,14 @@
  /**
   * Returns the authentication information for this bind request. The content
   * is defined by the authentication mechanism.
   * <p>
   * Unless otherwise indicated, implementations will store a reference to the
   * returned byte array, allowing applications to overwrite any sensitive data
   * such as passwords after it has been used.
   *
   * @return The authentication information.
   */
  ByteString getAuthenticationValue();
  byte[] getAuthenticationValue();
@@ -121,6 +126,10 @@
  /**
   * Sets the authentication information for this generic bind request in a form
   * defined by the authentication mechanism.
   * <p>
   * Unless otherwise indicated, implementations will store a reference to the
   * returned byte array, allowing applications to overwrite any sensitive data
   * such as passwords after it has been used.
   *
   * @param bytes
   *          The authentication information for this generic bind request in a
@@ -132,7 +141,7 @@
   * @throws NullPointerException
   *           If {@code bytes} was {@code null}.
   */
  GenericBindRequest setAuthenticationValue(ByteString bytes)
  GenericBindRequest setAuthenticationValue(byte[] bytes)
      throws UnsupportedOperationException, NullPointerException;