test/sun/security/krb5/auto/AlwaysEncPaReq.java

Sun, 31 May 2020 10:13:04 +0800

author
mbalao
date
Sun, 31 May 2020 10:13:04 +0800
changeset 14203
d8bd882cfd2a
permissions
-rw-r--r--

8246193: Possible NPE in ENC-PA-REP search in AS-REQ
Reviewed-by: zgu, andrew

mbalao@14203 1 /*
mbalao@14203 2 * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
mbalao@14203 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
mbalao@14203 4 *
mbalao@14203 5 * This code is free software; you can redistribute it and/or modify it
mbalao@14203 6 * under the terms of the GNU General Public License version 2 only, as
mbalao@14203 7 * published by the Free Software Foundation.
mbalao@14203 8 *
mbalao@14203 9 * This code is distributed in the hope that it will be useful, but WITHOUT
mbalao@14203 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
mbalao@14203 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
mbalao@14203 12 * version 2 for more details (a copy is included in the LICENSE file that
mbalao@14203 13 * accompanied this code).
mbalao@14203 14 *
mbalao@14203 15 * You should have received a copy of the GNU General Public License version
mbalao@14203 16 * 2 along with this work; if not, write to the Free Software Foundation,
mbalao@14203 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
mbalao@14203 18 *
mbalao@14203 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
mbalao@14203 20 * or visit www.oracle.com if you need additional information or have any
mbalao@14203 21 * questions.
mbalao@14203 22 */
mbalao@14203 23
mbalao@14203 24 /*
mbalao@14203 25 * @test
mbalao@14203 26 * @bug 8246193
mbalao@14203 27 * @summary Possible NPE in ENC-PA-REP search in AS-REQ
mbalao@14203 28 * @library /lib/testlibrary
mbalao@14203 29 * @compile -XDignore.symbol.file AlwaysEncPaReq.java
mbalao@14203 30 * @run main/othervm -Dtest.kdc.always.enc.pa.rep
mbalao@14203 31 * -Dsun.net.spi.nameservice.provider.1=ns,mock AlwaysEncPaReq
mbalao@14203 32 */
mbalao@14203 33
mbalao@14203 34 public class AlwaysEncPaReq {
mbalao@14203 35 public static void main(String[] args) throws Exception {
mbalao@14203 36 new OneKDC(null).writeJAASConf()
mbalao@14203 37 .setOption(KDC.Option.PREAUTH_REQUIRED, false);
mbalao@14203 38 Context.fromJAAS("client");
mbalao@14203 39 }
mbalao@14203 40 }

mercurial