11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /*
25 * @test
26 * @bug 6261831
27 * @summary Tests the use of the subject delegation feature on the authenticated
28 * principals within the RMI connector server's creator codebase with
29 * subject delegation.
30 * @author Luis-Miguel Alventosa
31 * @modules java.management.rmi
32 * java.management/com.sun.jmx.remote.security
33 * @run clean SubjectDelegation3Test SimpleStandard SimpleStandardMBean
34 * @run build SubjectDelegation3Test SimpleStandard SimpleStandardMBean
35 * @run main SubjectDelegation3Test policy31 ok
36 * @run main SubjectDelegation3Test policy32 ko
37 * @run main SubjectDelegation3Test policy33 ko
38 * @run main SubjectDelegation3Test policy34 ok
39 * @run main SubjectDelegation3Test policy35 ko
40 */
41
42 import com.sun.jmx.remote.security.JMXPluggableAuthenticator;
43 import java.io.File;
44 import java.lang.management.ManagementFactory;
45 import java.rmi.RemoteException;
46 import java.rmi.registry.LocateRegistry;
47 import java.rmi.registry.Registry;
48 import java.util.Collections;
49 import java.util.HashMap;
50 import java.util.Properties;
51 import javax.management.Attribute;
52 import javax.management.MBeanServer;
|
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /*
25 * @test
26 * @bug 6261831
27 * @summary Tests the use of the subject delegation feature on the authenticated
28 * principals within the RMI connector server's creator codebase with
29 * subject delegation.
30 * @author Luis-Miguel Alventosa
31 *
32 * @modules java.management.rmi
33 * java.management/com.sun.jmx.remote.security
34 *
35 * @run clean SubjectDelegation3Test SimpleStandard SimpleStandardMBean
36 * @run build SubjectDelegation3Test SimpleStandard SimpleStandardMBean
37 * @run main SubjectDelegation3Test policy31 ok
38 * @run main SubjectDelegation3Test policy32 ko
39 * @run main SubjectDelegation3Test policy33 ko
40 * @run main SubjectDelegation3Test policy34 ok
41 * @run main SubjectDelegation3Test policy35 ko
42 */
43
44 import com.sun.jmx.remote.security.JMXPluggableAuthenticator;
45 import java.io.File;
46 import java.lang.management.ManagementFactory;
47 import java.rmi.RemoteException;
48 import java.rmi.registry.LocateRegistry;
49 import java.rmi.registry.Registry;
50 import java.util.Collections;
51 import java.util.HashMap;
52 import java.util.Properties;
53 import javax.management.Attribute;
54 import javax.management.MBeanServer;
|