8264554: X509KeyManagerImpl calls getProtectionParameter with incorrect alias
Reviewed-by: mullan
This commit is contained in:
parent
114e3c3e2d
commit
2f5169965d
@ -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…
x
Reference in New Issue
Block a user