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 in the
28 * RMI connector
29 * @author Luis-Miguel Alventosa
30 * @modules java.management.rmi
31 * java.management/com.sun.jmx.remote.security
32 * @run clean SubjectDelegation1Test SimpleStandard SimpleStandardMBean
33 * @run build SubjectDelegation1Test SimpleStandard SimpleStandardMBean
34 * @run main SubjectDelegation1Test policy11 ok
35 * @run main SubjectDelegation1Test policy12 ko
36 * @run main SubjectDelegation1Test policy13 ko
37 * @run main SubjectDelegation1Test policy14 ko
38 * @run main SubjectDelegation1Test policy15 ok
39 * @run main SubjectDelegation1Test policy16 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;
|
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 in the
28 * RMI connector
29 * @author Luis-Miguel Alventosa
30 *
31 * @modules java.management.rmi
32 * java.management/com.sun.jmx.remote.security
33 *
34 * @run clean SubjectDelegation1Test SimpleStandard SimpleStandardMBean
35 * @run build SubjectDelegation1Test SimpleStandard SimpleStandardMBean
36 * @run main SubjectDelegation1Test policy11 ok
37 * @run main SubjectDelegation1Test policy12 ko
38 * @run main SubjectDelegation1Test policy13 ko
39 * @run main SubjectDelegation1Test policy14 ko
40 * @run main SubjectDelegation1Test policy15 ok
41 * @run main SubjectDelegation1Test policy16 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;
|