Re: [9] RFR 8164494: SunPKCS11-Solaris requires a non-empty PBE password

2016-08-19 Thread Weijun Wang
How about this.prf = (passwdBytes.length == 0) ? Mac.getInstance(prfAlgo, SunJCE.getInstance()) : Mac.getInstance(prfAlgo); Mac is only implemented in SunPKCS11 and SunJCE out-of-box, so this saves an extra getInstance() call. If a 3rd party provider is involved, I'm not sure it

Re: RFR: 8164397: Provide javadoc descriptions for jdk.security.auth, jdk.security.jgss modules

2016-08-19 Thread Weijun Wang
Me too. --Max On 8/19/2016 23:11, Xuelei Fan wrote: Looks fine to me. Xuelei On 8/19/2016 10:25 PM, Sean Mullan wrote: Please review this docs-only fix to provide descriptions for the jdk.security.auth and jdk.security.jgss modules:

Re: RFR: 8163126 Wrong @modules in some of jdk/* tests

2016-08-19 Thread Mandy Chung
> On Aug 16, 2016, at 10:17 AM, Alexandre (Shura) Iline > wrote: > > Hi. > > Please review fixes related to module dependencies in a few jdk tests: > http://cr.openjdk.java.net/~shurailine/8163126/webrev.00/index.html Looks okay. I will sponsor this patch for you. Mandy

Re: [9] RFR 8164494: SunPKCS11-Solaris requires a non-empty PBE password

2016-08-19 Thread Valerie Peng
Looks fine to me. Thanks, Valerie On 8/19/2016 9:57 AM, Vincent Ryan wrote: Please review this fix to PBE key derivation function which detects when a non-empty password is supplied to the SunPKCS11-Solaris JCE provider and fails over to the SunJCE provider instead. Thanks. Bug: https://bugs.

[9] RFR 8164494: SunPKCS11-Solaris requires a non-empty PBE password

2016-08-19 Thread Vincent Ryan
Please review this fix to PBE key derivation function which detects when a non-empty password is supplied to the SunPKCS11-Solaris JCE provider and fails over to the SunJCE provider instead. Thanks. Bug: https://bugs.openjdk.java.net/browse/JDK-8164494 Webrev: http://cr.openjdk.java.net/~vinnie/

Re: [9] RFR 8078661: [SunPKCS11] Fails to cast into RSAPrivateCrtKey after RSA KeyPair Generation

2016-08-19 Thread Michael StJohns
On 8/18/2016 8:48 PM, Valerie Peng wrote: I share your view on most things. It's just that the APIs are there before the PKCS11 provider is added. So, there are some history reason as to why things are as they are today. Re-structuring the public classes are almost impossible considering the

Re: RFR: 8164397: Provide javadoc descriptions for jdk.security.auth, jdk.security.jgss modules

2016-08-19 Thread Xuelei Fan
Looks fine to me. Xuelei On 8/19/2016 10:25 PM, Sean Mullan wrote: Please review this docs-only fix to provide descriptions for the jdk.security.auth and jdk.security.jgss modules: diff -r 657a5b92e26e src/jdk.security.auth/share/classes/module-info.java --- a/src/jdk.security.auth/share/class

RFR: 8164397: Provide javadoc descriptions for jdk.security.auth, jdk.security.jgss modules

2016-08-19 Thread Sean Mullan
Please review this docs-only fix to provide descriptions for the jdk.security.auth and jdk.security.jgss modules: diff -r 657a5b92e26e src/jdk.security.auth/share/classes/module-info.java --- a/src/jdk.security.auth/share/classes/module-info.java Fri Aug 19 13:50:03 2016 +0200 +++ b/src/jdk.sec

Re: RFR 8164437: Test for JDK-8042900

2016-08-19 Thread Xuelei Fan
OK. Xuelei On 8/19/2016 7:47 PM, Weijun Wang wrote: On 8/19/2016 16:48, Xuelei Fan wrote: Looks fine to me. BTW, why not check the class name right after the object is created? This is just a small enhancement to an existing test, and I don't want to break the existing block. I added a com

Re: RFR 8164437: Test for JDK-8042900

2016-08-19 Thread Weijun Wang
On 8/19/2016 16:48, Xuelei Fan wrote: Looks fine to me. BTW, why not check the class name right after the object is created? This is just a small enhancement to an existing test, and I don't want to break the existing block. I added a comment there. And I've enhanced the test a little to c

Re: RFR 8164437: Test for JDK-8042900

2016-08-19 Thread Xuelei Fan
Looks fine to me. BTW, why not check the class name right after the object is created? Xuelei On 8/19/2016 2:34 PM, Weijun Wang wrote: Please review the code change at http://cr.openjdk.java.net/~weijun/8164437/webrev.00 The updated test shows that with the jdk.security.jgss package, the