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

Matthew Swift
25.33.2012 263d085885df024dca9250cc03c807912b0a7662
opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/requests/WhoAmIExtendedRequest.java
@@ -6,17 +6,16 @@
 * (the "License").  You may not use this file except in compliance
 * with the License.
 *
 * You can obtain a copy of the license at
 * trunk/opendj3/legal-notices/CDDLv1_0.txt
 * You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
 * or http://forgerock.org/license/CDDLv1.0.html.
 * See the License for the specific language governing permissions
 * and limitations under the License.
 *
 * When distributing Covered Code, include this CDDL HEADER in each
 * file and include the License file at
 * trunk/opendj3/legal-notices/CDDLv1_0.txt.  If applicable,
 * add the following below this CDDL HEADER, with the fields enclosed
 * by brackets "[]" replaced with your own identifying information:
 * file and include the License file at legal-notices/CDDLv1_0.txt.
 * If applicable, add the following below this CDDL HEADER, with the
 * fields enclosed by brackets "[]" replaced with your own identifying
 * information:
 *      Portions Copyright [yyyy] [name of copyright owner]
 *
 * CDDL HEADER END
@@ -27,8 +26,6 @@
package org.forgerock.opendj.ldap.requests;
import java.util.List;
import org.forgerock.opendj.ldap.ByteString;
@@ -39,10 +36,8 @@
import org.forgerock.opendj.ldap.responses.ExtendedResultDecoder;
import org.forgerock.opendj.ldap.responses.WhoAmIExtendedResult;
/**
 *The who am I extended request as defined in RFC 4532. This operation allows
 * The who am I extended request as defined in RFC 4532. This operation allows
 * clients to obtain the primary authorization identity, in its primary form,
 * that the server has associated with the user or application entity.
 * <p>
@@ -64,69 +59,53 @@
 *      Directory Access Protocol (LDAP) Authorization Identity Request and
 *      Response Controls </a>
 */
public interface WhoAmIExtendedRequest extends
    ExtendedRequest<WhoAmIExtendedResult>
{
public interface WhoAmIExtendedRequest extends ExtendedRequest<WhoAmIExtendedResult> {
  /**
   * The OID for the who am I extended operation request.
   */
  public static final String OID = "1.3.6.1.4.1.4203.1.11.3";
    /**
     * The OID for the who am I extended operation request.
     */
    public static final String OID = "1.3.6.1.4.1.4203.1.11.3";
  /**
   * A decoder which can be used to decode who am I extended operation requests.
   */
  public static final ExtendedRequestDecoder<WhoAmIExtendedRequest,
                                             WhoAmIExtendedResult> DECODER =
    new WhoAmIExtendedRequestImpl.RequestDecoder();
    /**
     * A decoder which can be used to decode who am I extended operation
     * requests.
     */
    public static final ExtendedRequestDecoder<WhoAmIExtendedRequest, WhoAmIExtendedResult> DECODER =
            new WhoAmIExtendedRequestImpl.RequestDecoder();
    /**
     * {@inheritDoc}
     */
    WhoAmIExtendedRequest addControl(Control control);
    /**
     * {@inheritDoc}
     */
    <C extends Control> C getControl(ControlDecoder<C> decoder, DecodeOptions options)
            throws DecodeException;
  /**
   * {@inheritDoc}
   */
  WhoAmIExtendedRequest addControl(Control control);
    /**
     * {@inheritDoc}
     */
    List<Control> getControls();
    /**
     * {@inheritDoc}
     */
    String getOID();
    /**
     * {@inheritDoc}
     */
    ExtendedResultDecoder<WhoAmIExtendedResult> getResultDecoder();
  /**
   * {@inheritDoc}
   */
  <C extends Control> C getControl(ControlDecoder<C> decoder,
      DecodeOptions options) throws DecodeException;
    /**
     * {@inheritDoc}
     */
    ByteString getValue();
  /**
   * {@inheritDoc}
   */
  List<Control> getControls();
  /**
   * {@inheritDoc}
   */
  String getOID();
  /**
   * {@inheritDoc}
   */
  ExtendedResultDecoder<WhoAmIExtendedResult> getResultDecoder();
  /**
   * {@inheritDoc}
   */
  ByteString getValue();
  /**
   * {@inheritDoc}
   */
  boolean hasValue();
    /**
     * {@inheritDoc}
     */
    boolean hasValue();
}