8281234: The -protected option is not always checked in keytool and jarsigner

Reviewed-by: hchao, mullan
This commit is contained in:
Weijun Wang 2022-03-02 14:07:26 +00:00
parent d80f697182
commit fc918a73d0
4 changed files with 198 additions and 4 deletions

View file

@ -1286,6 +1286,7 @@ public final class Main {
kssave = true;
} else if (command == LIST) {
if (storePass == null
&& !protectedPath
&& !KeyStoreUtil.isWindowsKeyStore(storetype)
&& !isPasswordlessKeyStore) {
printNoIntegrityWarning();
@ -1685,6 +1686,7 @@ public final class Main {
throws Exception
{
if (storePass == null
&& !protectedPath
&& !KeyStoreUtil.isWindowsKeyStore(storetype)
&& !isPasswordlessKeyStore) {
printNoIntegrityWarning();