> SunJSSE implementation of `SSLEngine` throws an IllegalStateException if > being used to start a handshake or wrap/unwrap bytes before calling > `setUseClientMode()`. Research shows that it's not necessarily needed and the > `server` default can be used. We do recommend users to set the desired mode > explicitly in `SSLContext` and `SSLContextSpi` javadocs. > > --------- > - [x] I confirm that I make this contribution in accordance with the [OpenJDK > Interim AI Policy](https://openjdk.org/legal/ai).
Artur Barashev has updated the pull request incrementally with one additional commit since the last revision: Use default server mode in SSLEngineTemplate. Rename the test. ------------- Changes: - all: https://git.openjdk.org/jdk/pull/31422/files - new: https://git.openjdk.org/jdk/pull/31422/files/d4dba5e2..ef273ab9 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=31422&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=31422&range=01-02 Stats: 11 lines in 2 files changed: 0 ins; 7 del; 4 mod Patch: https://git.openjdk.org/jdk/pull/31422.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/31422/head:pull/31422 PR: https://git.openjdk.org/jdk/pull/31422
