Skip to content
Permalink
Browse files
8264554: X509KeyManagerImpl calls getProtectionParameter with incorre…
…ct alias

Reviewed-by: mullan
  • Loading branch information
XueleiFan committed Apr 6, 2021
1 parent 114e3c3 commit 2f5169965dc6e76116c2fa023b905efea7a6f6a9
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/java.base/share/classes/sun/security/ssl/X509KeyManagerImpl.java
@@ -269,8 +269,8 @@ private PrivateKeyEntry getEntry(String alias) {
String keyStoreAlias = alias.substring(secondDot + 1);
Builder builder = builders.get(builderIndex);
KeyStore ks = builder.getKeyStore();
Entry newEntry = ks.getEntry
(keyStoreAlias, builder.getProtectionParameter(alias));
Entry newEntry = ks.getEntry(keyStoreAlias,
builder.getProtectionParameter(keyStoreAlias));
if (!(newEntry instanceof PrivateKeyEntry)) {
// unexpected type of entry
return null;

1 comment on commit 2f51699

@openjdk-notifier

This comment has been minimized.

Copy link

@openjdk-notifier openjdk-notifier bot commented on 2f51699 Apr 6, 2021

Please sign in to comment.