# HG changeset patch # User weijun # Date 1289005878 -28800 # Node ID 01308fd663b3801f8a0f099e733e693f166f13ce # Parent ee97f78e7482fcc2bbee94e2b52b7b7f402dd7df 6997740: ktab entry related test compilation error Reviewed-by: valeriep diff -r ee97f78e7482 -r 01308fd663b3 jdk/test/sun/security/krb5/auto/MoreKvno.java --- a/jdk/test/sun/security/krb5/auto/MoreKvno.java Fri Nov 05 14:15:25 2010 -0700 +++ b/jdk/test/sun/security/krb5/auto/MoreKvno.java Sat Nov 06 09:11:18 2010 +0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -48,9 +48,9 @@ KeyTab ktab = KeyTab.create(OneKDC.KTAB); p = new PrincipalName( OneKDC.SERVER+"@"+OneKDC.REALM, PrincipalName.KRB_NT_SRV_HST); - ktab.addEntry(p, "pass1".toCharArray(), 1); - ktab.addEntry(p, "pass3".toCharArray(), 3); - ktab.addEntry(p, "pass2".toCharArray(), 2); + ktab.addEntry(p, "pass1".toCharArray(), 1, true); + ktab.addEntry(p, "pass3".toCharArray(), 3, true); + ktab.addEntry(p, "pass2".toCharArray(), 2, true); ktab.save(); char[] pass = "pass2".toCharArray(); diff -r ee97f78e7482 -r 01308fd663b3 jdk/test/sun/security/krb5/auto/SSL.java --- a/jdk/test/sun/security/krb5/auto/SSL.java Fri Nov 05 14:15:25 2010 -0700 +++ b/jdk/test/sun/security/krb5/auto/SSL.java Sat Nov 06 09:11:18 2010 +0800 @@ -74,9 +74,9 @@ KeyTab ktab = KeyTab.create(OneKDC.KTAB); PrincipalName service = new PrincipalName( "host/" + server, PrincipalName.KRB_NT_SRV_HST); - ktab.addEntry(service, "pass1".toCharArray(), 1); - ktab.addEntry(service, "pass2".toCharArray(), 2); - ktab.addEntry(service, "pass3".toCharArray(), 3); + ktab.addEntry(service, "pass1".toCharArray(), 1, true); + ktab.addEntry(service, "pass2".toCharArray(), 2, true); + ktab.addEntry(service, "pass3".toCharArray(), 3, true); ktab.save(); // and use the middle one as the real key diff -r ee97f78e7482 -r 01308fd663b3 jdk/test/sun/security/krb5/auto/W83.java --- a/jdk/test/sun/security/krb5/auto/W83.java Fri Nov 05 14:15:25 2010 -0700 +++ b/jdk/test/sun/security/krb5/auto/W83.java Sat Nov 06 09:11:18 2010 +0800 @@ -56,7 +56,7 @@ KeyTab ktab = KeyTab.getInstance(OneKDC.KTAB); for (int etype: EType.getBuiltInDefaults()) { if (etype != EncryptedData.ETYPE_ARCFOUR_HMAC) { - ktab.deleteEntry(new PrincipalName(OneKDC.USER), etype); + ktab.deleteEntries(new PrincipalName(OneKDC.USER), etype, -1); } } ktab.save(); diff -r ee97f78e7482 -r 01308fd663b3 jdk/test/sun/security/krb5/ktab/KeyTabIndex.java --- a/jdk/test/sun/security/krb5/ktab/KeyTabIndex.java Fri Nov 05 14:15:25 2010 -0700 +++ b/jdk/test/sun/security/krb5/ktab/KeyTabIndex.java Sat Nov 06 09:11:18 2010 +0800 @@ -35,8 +35,8 @@ // observice the abnormal change of "index" field. kt.addEntry(new PrincipalName( "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa@A"), - "x".toCharArray(), 1); - kt.addEntry(new PrincipalName("a@A"), "x".toCharArray(), 1); + "x".toCharArray(), 1, true); + kt.addEntry(new PrincipalName("a@A"), "x".toCharArray(), 1, true); kt.save(); Runnable t = new Runnable() { @Override