6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
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 * @test
25 * @bug 8005447
26 * @compile -XDignore.symbol.file ServiceCredsCombination.java
27 * @run main ServiceCredsCombination
28 * @summary default principal can act as anyone
29 */
30
31 import java.security.PrivilegedActionException;
32 import java.security.PrivilegedExceptionAction;
33 import java.util.Objects;
34 import javax.security.auth.Subject;
35 import javax.security.auth.kerberos.KerberosKey;
36 import javax.security.auth.kerberos.KerberosPrincipal;
37 import javax.security.auth.kerberos.KeyTab;
38 import org.ietf.jgss.GSSCredential;
39 import org.ietf.jgss.GSSException;
40 import org.ietf.jgss.GSSManager;
41 import org.ietf.jgss.GSSName;
42 import sun.security.jgss.GSSUtil;
43
44 public class ServiceCredsCombination {
45
|
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
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 * @test
25 * @bug 8005447
26 * @modules java.security.jgss/sun.security.jgss
27 * @compile -XDignore.symbol.file ServiceCredsCombination.java
28 * @run main ServiceCredsCombination
29 * @summary default principal can act as anyone
30 */
31
32 import java.security.PrivilegedActionException;
33 import java.security.PrivilegedExceptionAction;
34 import java.util.Objects;
35 import javax.security.auth.Subject;
36 import javax.security.auth.kerberos.KerberosKey;
37 import javax.security.auth.kerberos.KerberosPrincipal;
38 import javax.security.auth.kerberos.KeyTab;
39 import org.ietf.jgss.GSSCredential;
40 import org.ietf.jgss.GSSException;
41 import org.ietf.jgss.GSSManager;
42 import org.ietf.jgss.GSSName;
43 import sun.security.jgss.GSSUtil;
44
45 public class ServiceCredsCombination {
46
|