10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
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.
29 * @author Luis-Miguel Alventosa
30 * @modules java.management.rmi
31 * java.management/com.sun.jmx.remote.security
32 * @run clean SubjectDelegation2Test SimpleStandard SimpleStandardMBean
33 * @run build SubjectDelegation2Test SimpleStandard SimpleStandardMBean
34 * @run main SubjectDelegation2Test policy21 ok
35 * @run main SubjectDelegation2Test policy22 ko
36 * @run main SubjectDelegation2Test policy23 ko
37 * @run main SubjectDelegation2Test policy24 ok
38 * @run main SubjectDelegation2Test policy25 ko
39 */
40
41 import com.sun.jmx.remote.security.JMXPluggableAuthenticator;
42 import java.io.File;
43 import java.lang.management.ManagementFactory;
44 import java.rmi.RemoteException;
45 import java.rmi.registry.LocateRegistry;
46 import java.rmi.registry.Registry;
47 import java.util.HashMap;
48 import java.util.Properties;
49 import javax.management.Attribute;
50 import javax.management.MBeanServer;
51 import javax.management.MBeanServerConnection;
|
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
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.
29 * @author Luis-Miguel Alventosa
30 *
31 * @modules java.management.rmi
32 * java.management/com.sun.jmx.remote.security
33 *
34 * @run clean SubjectDelegation2Test SimpleStandard SimpleStandardMBean
35 * @run build SubjectDelegation2Test SimpleStandard SimpleStandardMBean
36 * @run main SubjectDelegation2Test policy21 ok
37 * @run main SubjectDelegation2Test policy22 ko
38 * @run main SubjectDelegation2Test policy23 ko
39 * @run main SubjectDelegation2Test policy24 ok
40 * @run main SubjectDelegation2Test policy25 ko
41 */
42
43 import com.sun.jmx.remote.security.JMXPluggableAuthenticator;
44 import java.io.File;
45 import java.lang.management.ManagementFactory;
46 import java.rmi.RemoteException;
47 import java.rmi.registry.LocateRegistry;
48 import java.rmi.registry.Registry;
49 import java.util.HashMap;
50 import java.util.Properties;
51 import javax.management.Attribute;
52 import javax.management.MBeanServer;
53 import javax.management.MBeanServerConnection;
|