| | |
| | | * |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.controls; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | /** |
| | | * Tests the constructor with an empty authorization ID. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testConstructorEmptyAuthzID() |
| | | { |
| | | ProxiedAuthV2Control proxyControl = |
| | |
| | | * Tests the constructor with a non-empty authorization ID using the "dn:" |
| | | * form. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testConstructorNonEmptyAuthzIDDN() |
| | | { |
| | | ProxiedAuthV2Control proxyControl = |
| | |
| | | * Tests the constructor with a non-empty authorization ID using the "u:" |
| | | * form. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testConstructorNonEmptyAuthzIDUsername() |
| | | { |
| | | ProxiedAuthV2Control proxyControl = |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDecodeControlDNValue() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDecodeControlUsernameValue() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDecodeControlLegacyDNValue() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDecodeControlLegacyUsernameValue() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetValidatedAuthorizationDNEmptyAuthzID() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetValidatedAuthorizationDNEmptyAuthzIDDN() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetValidatedAuthorizationDNExistingUserDN() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetValidatedAuthorizationDNEmptyAuthzIDUsername() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetValidatedAuthorizationDNExistingUserUsername() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testToString() |
| | | throws Exception |
| | | { |