ProxiedAuthV1ControlTestCase.java revision ea1068c292e9b341af6d6b563cd8988a96be20a9
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * CDDL HEADER START
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * The contents of this file are subject to the terms of the
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * Common Development and Distribution License, Version 1.0 only
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * (the "License"). You may not use this file except in compliance
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * with the License.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * or http://forgerock.org/license/CDDLv1.0.html.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * See the License for the specific language governing permissions
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * and limitations under the License.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * When distributing Covered Code, include this CDDL HEADER in each
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * file and include the License file at legal-notices/CDDLv1_0.txt.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * If applicable, add the following below this CDDL HEADER, with the
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * fields enclosed by brackets "[]" replaced with your own identifying
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * information:
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * Portions Copyright [yyyy] [name of copyright owner]
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * CDDL HEADER END
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * Copyright 2008-2009 Sun Microsystems, Inc.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * Portions Copyright 2014-2015 ForgeRock AS
0c9594d96d580b0cba488fa7d01802fbb49d8a3eCraig McDonnellimport org.opends.server.protocols.ldap.LDAPControl;
public class ProxiedAuthV1ControlTestCase
extends ControlsTestCase
public void startServer()
throws Exception
@Test
public void testConstructor1()
throws Exception
} catch (Throwable t) {}
} catch (Exception e) {}
@Test
public void testConstructor2()
throws Exception
} catch (Throwable t) {}
public void testDecodeControlNotCritical()
throws Exception
LDAPControl c =
public void testDecodeControlNoValue()
throws Exception
public void testDecodeControlValueNotSequence()
throws Exception
LDAPControl c =
public void testDecodeControlValueEmptySequence()
throws Exception
LDAPControl c =
@Test
public void testDecodeControlValueMultiElementSequence()
throws Exception
LDAPControl c =
public void testDecodeControlValueInvalidDN()
throws Exception
LDAPControl c =
@Test
public void testDecodeControlValueEmptyDN()
throws Exception
LDAPControl c =
ProxiedAuthV1Control proxyControl = ProxiedAuthV1Control.DECODER.decode(c.isCritical(), c.getValue());
@Test
public void testDecodeControlValueNonEmptyDN()
throws Exception
LDAPControl c =
ProxiedAuthV1Control proxyControl = ProxiedAuthV1Control.DECODER.decode(c.isCritical(), c.getValue());
@Test
public void testGetAndSetRawAuthorizationDN()
throws Exception
@Test
public void testGetAndSetAuthorizationDN()
throws Exception
@Test
public void testGetValidatedAuthorizationDNNullDN()
throws Exception
@Test
public void testGetValidatedAuthorizationExistingNormalUser()
throws Exception
public void testGetValidatedAuthorizationNonExistingNormalUser()
throws Exception
public void testGetValidatedAuthorizationDisabledUser()
throws Exception
@Test
public void testToString()
throws Exception