RFR: 8257722: Improve "keytool -printcert -jarfile" output [v4]

Weijun Wang weijun at openjdk.java.net
Thu Oct 28 22:02:17 UTC 2021


On Thu, 28 Oct 2021 21:13:40 GMT, Hai-May Chao <hchao at openjdk.org> wrote:

>> This change does a few improvements to the output of `keytool -printcert -jarfile` command to help readability and diagnosis.
>
> Hai-May Chao has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Update while block code

Looks fine now.

I wonder if the order of signers in the set matters. It's possible that one signer appears first in the result of `getCodeSigners()` but because `HashSet` maintains no order it becomes the second. If you are also worried about this, you can make `ss` a `LinkedHashSet`.

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

Marked as reviewed by weijun (Reviewer).

PR: https://git.openjdk.java.net/jdk/pull/6126



More information about the security-dev mailing list