At the beginning, this bug was about the incorrect warning message "Unsupported authentication scheme" on line 1051 which should have been "This key algorithm has been checked, skip it".
Now, it's a code refactoring that emphasizes only the key algorithm inside a signature scheme is checked in these two methods, and therefore the ignore-if-checked logic in the old code is correct. ------------- Commit messages: - the fix Changes: https://git.openjdk.org/jdk/pull/9140/files Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=9140&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8288209 Stats: 106 lines in 5 files changed: 9 ins; 57 del; 40 mod Patch: https://git.openjdk.org/jdk/pull/9140.diff Fetch: git fetch https://git.openjdk.org/jdk pull/9140/head:pull/9140 PR: https://git.openjdk.org/jdk/pull/9140