RFR[10] 8186057: TLS interoperability testing between different Java versions

2017-09-06 Thread sha . jiang

Hi,
Please review this test for checking the interop compatibility on JSSE 
among different JDK releases (from 6 to 10).
It covers the cases, like handshake, data exchange, client 
authentication and APLN, on all TLS versions (if possible).
And the selected TLS cipher suites are: TLS_RSA_WITH_AES_128_CBC_SHA, 
TLS_DHE_DSS_WITH_AES_128_CBC_SHA and TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA.

For more details, please look though the README.

Webrev: http://cr.openjdk.java.net/~jjiang/8186057/webrev.00
Issue: https://bugs.openjdk.java.net/browse/JDK-8186057

Best regards,
John Jiang



RFR 8186884: Test native KDC, Java krb5 lib, and native krb5 lib in one test

2017-09-06 Thread Weijun Wang
Please take a review at

   http://cr.openjdk.java.net/~weijun/8186884/webrev.00/

BasicProc.java is enhanced to use a native JGSS provider, and KDC.java is 
enhanced to start (not use) a native KDC. For example, you would be able to 
test interop among Java JGSS, native JGSS (with MIT krb5) and Heimdal KDC with

jtreg -Dnative.krb5.lib=/usr/local/krb5/lib/libgssapi_krb5.so \
  -Dnative.kdc.path=/usr/local/heimdal \
  test/sun/security/krb5/auto/BasicProc.java

Without those 2 new system properties, it behaves like before, i.e. Java GSS on 
the embedded KDC.

Another change in Context.java. Instead of using shared states to provide 
username and password when doing a krb5 login, a callback handler is used. This 
is considered more common. An extra permission is needed to read the default 
username (though I think this can coded as optional).

Thanks
Max



Re: RFR 8148371: Remove policytool

2017-09-06 Thread Sean Mullan

The jdk changes look fine to me.

--Sean

On 9/6/17 12:17 AM, Weijun Wang wrote:

Hi All

Please review the change, which spans to root, jdk and langtools repos.

   http://cr.openjdk.java.net/~weijun/8148371/

I've searched for the "policytool" word in the whole jdk10/jdk10 forests, 
removed all files having the word inside the path name, and remove almost all occurrences 
of the word in other places.

The exceptions are:

1. Two files with the jdk8 word in file name. I assume I should not touch them. 
Please advise me.

jdk/src/java.base/share/classes/jdk/internal/module/jdk8_packages.dat:
  1288  sun.security.tools.jarsigner
  1289  sun.security.tools.keytool
  1290: sun.security.tools.policytool
  1291  sun.security.util
  1292  sun.security.validator

langtools/src/jdk.jdeps/share/classes/com/sun/tools/jdeps/resources/jdk8_internals.txt:
   977  sun.security.tools.jarsigner
   978  sun.security.tools.keytool
   979: sun.security.tools.policytool
   980  sun.security.util
   981  sun.security.validator

2. A swing test containing a full JDK 1.4.2 README text. Keep unchanged.

jdk/test/javax/swing/JTextArea/4697612/bug4697612.txt:
   122bin/ktab and jre/bin/ktab
   123  Kerberos key table manager
   124:   bin/policytool and jre/bin/policytool
   125  Policy File Creation and Management Tool
   126bin/orbd and jre/bin/orbd

3. A manual test on what resource string are used. It is based on the 
pre-module source layout and needs to be updated anyway. Keep unchanged this 
time. https://bugs.openjdk.java.net/browse/JDK-8187265 filed.

jdk/test/sun/security/util/Resources/NewResourcesNames.java:
62  "sun/security/tools/jarsigner/Resources.java",
63  "sun/security/tools/keytool/Resources.java",
64: "sun/security/tools/policytool/Resources.java",
65  "sun/security/util/Resources.java",
66  "sun/security/util/AuthResources.java",
..
   103  //
   104  // which is mismatch. There are only two such special cases 
list above.
   105: // For KeyTool, there are 3 calls for showing help. For 
PolicyTool, 3
   106  // for name prefixed with POLICY. They are covered in the two 
special
   107  // cases above.

There are some Japanese man pages containing the word. I've filed another bug 
(https://bugs.openjdk.java.net/browse/JDK-8187262) on it.

Thanks
Max



Re: RFR 8148371: Remove policytool

2017-09-06 Thread Alan Bateman



On 06/09/2017 05:17, Weijun Wang wrote:

Hi All

Please review the change, which spans to root, jdk and langtools repos.

   http://cr.openjdk.java.net/~weijun/8148371/

I've searched for the "policytool" word in the whole jdk10/jdk10 forests, 
removed all files having the word inside the path name, and remove almost all occurrences 
of the word in other places.

This looks good, the only change that I'm not sure about is the change 
to ct.properties as it may be used when compiling to older releases. 
Someone on compiler-dev should be able to help you on that.


-Alan


Re: RFR 8148371: Remove policytool

2017-09-06 Thread Erik Joelsson

From a build point of view this looks good.

/Erik


On 2017-09-06 06:17, Weijun Wang wrote:

Hi All

Please review the change, which spans to root, jdk and langtools repos.

   http://cr.openjdk.java.net/~weijun/8148371/

I've searched for the "policytool" word in the whole jdk10/jdk10 forests, 
removed all files having the word inside the path name, and remove almost all occurrences 
of the word in other places.

The exceptions are:

1. Two files with the jdk8 word in file name. I assume I should not touch them. 
Please advise me.

jdk/src/java.base/share/classes/jdk/internal/module/jdk8_packages.dat:
  1288  sun.security.tools.jarsigner
  1289  sun.security.tools.keytool
  1290: sun.security.tools.policytool
  1291  sun.security.util
  1292  sun.security.validator

langtools/src/jdk.jdeps/share/classes/com/sun/tools/jdeps/resources/jdk8_internals.txt:
   977  sun.security.tools.jarsigner
   978  sun.security.tools.keytool
   979: sun.security.tools.policytool
   980  sun.security.util
   981  sun.security.validator

2. A swing test containing a full JDK 1.4.2 README text. Keep unchanged.

jdk/test/javax/swing/JTextArea/4697612/bug4697612.txt:
   122bin/ktab and jre/bin/ktab
   123  Kerberos key table manager
   124:   bin/policytool and jre/bin/policytool
   125  Policy File Creation and Management Tool
   126bin/orbd and jre/bin/orbd

3. A manual test on what resource string are used. It is based on the 
pre-module source layout and needs to be updated anyway. Keep unchanged this 
time. https://bugs.openjdk.java.net/browse/JDK-8187265 filed.

jdk/test/sun/security/util/Resources/NewResourcesNames.java:
62  "sun/security/tools/jarsigner/Resources.java",
63  "sun/security/tools/keytool/Resources.java",
64: "sun/security/tools/policytool/Resources.java",
65  "sun/security/util/Resources.java",
66  "sun/security/util/AuthResources.java",
..
   103  //
   104  // which is mismatch. There are only two such special cases 
list above.
   105: // For KeyTool, there are 3 calls for showing help. For 
PolicyTool, 3
   106  // for name prefixed with POLICY. They are covered in the two 
special
   107  // cases above.

There are some Japanese man pages containing the word. I've filed another bug 
(https://bugs.openjdk.java.net/browse/JDK-8187262) on it.

Thanks
Max