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

changeset 14203
d8bd882cfd2a
parent 13897
9099e882f08e
child 14222
5a272e10d7e7
equal deleted inserted replaced
14202:e78cf577654b 14203:d8bd882cfd2a
1 /* 1 /*
2 * Copyright (c) 2008, 2018, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2008, 2020, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
1176 } 1176 }
1177 if (body.kdcOptions.get(KDCOptions.ALLOW_POSTDATE)) { 1177 if (body.kdcOptions.get(KDCOptions.ALLOW_POSTDATE)) {
1178 bFlags[Krb5.TKT_OPTS_MAY_POSTDATE] = true; 1178 bFlags[Krb5.TKT_OPTS_MAY_POSTDATE] = true;
1179 } 1179 }
1180 bFlags[Krb5.TKT_OPTS_INITIAL] = true; 1180 bFlags[Krb5.TKT_OPTS_INITIAL] = true;
1181 if (System.getProperty("test.kdc.always.enc.pa.rep") != null) {
1182 bFlags[Krb5.TKT_OPTS_ENC_PA_REP] = true;
1183 }
1181 1184
1182 // Creating PA-DATA 1185 // Creating PA-DATA
1183 DerValue[] pas2 = null, pas = null; 1186 DerValue[] pas2 = null, pas = null;
1184 if (options.containsKey(KDC.Option.DUP_ETYPE)) { 1187 if (options.containsKey(KDC.Option.DUP_ETYPE)) {
1185 int n = (Integer)options.get(KDC.Option.DUP_ETYPE); 1188 int n = (Integer)options.get(KDC.Option.DUP_ETYPE);

mercurial