On Thu, 22 Feb 2024 08:33:11 GMT, Jaikiran Pai <[email protected]> wrote:

>> Can I please get a review of this change which proposes to fix 
>> https://bugs.openjdk.org/browse/JDK-8326381?
>> 
>> As noted in the JBS issue, the implementation in `setNeedClientAuth()` and 
>> `setWantClientAuth()` of `com.sun.net.httpserver.HttpsParameters` wasn't 
>> matching the API specification. The commit in this PR fixes that issue and 
>> it now matches the API specification as well as what is done in 
>> `javax.net.ssl.SSLParameters` class.
>> 
>> Additionally, as noted in the JBS issue, the (internal class) 
>> `sun.net.httpserver.SSLStreams` had a bug where it could end up resetting 
>> the `needClientAuth` flag on the `SSLEngine` because of the way the 
>> `setNeedClientAuth()` and `setWantClientAuth()` methods were being called on 
>> the `SSLEngine`. This too has been fixed in this PR.
>> 
>> A new jtreg test has been introduced to reproduce the issue in the 
>> `HttpsParameters` class and verify this fix.
>
> Jaikiran Pai has updated the pull request incrementally with two additional 
> commits since the last revision:
> 
>  - split the test into 3 test methods
>  - else-if instead of if

Should we deprecate the HttpsParameters methods? The class javadoc has advised 
against using them since the day they were introduced, and if I read 
[JDK-6398764](https://bugs.openjdk.org/browse/JDK-6398764) correctly, they were 
only introduced to enable backporting HttpsParameters to JDK 1.5.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/17940#issuecomment-1959007835

Reply via email to