| | |
| | | * (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 |
| | |
| | | |
| | | package org.forgerock.opendj.ldap.requests; |
| | | |
| | | |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | |
| | | 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> |
| | |
| | | * 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(); |
| | | } |