mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8264554: X509KeyManagerImpl calls getProtectionParameter with incorrect alias
Reviewed-by: mullan
This commit is contained in:
parent
114e3c3e2d
commit
2f5169965d
1 changed files with 2 additions and 2 deletions
|
@ -269,8 +269,8 @@ final class X509KeyManagerImpl extends X509ExtendedKeyManager
|
|||
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue