public class KeyManagerProxy extends X509ExtendedKeyManager
X509ExtendedKeyManager and gives opportunity to refresh key-manager with refreshed certs
without changing SslContext.| Constructor and Description |
|---|
KeyManagerProxy(String certFilePath,
String keyFilePath,
int refreshDurationSec,
ScheduledExecutorService executor) |
| Modifier and Type | Method and Description |
|---|---|
String |
chooseClientAlias(String[] strings,
Principal[] principals,
Socket socket) |
String |
chooseEngineClientAlias(String[] keyType,
Principal[] issuers,
SSLEngine engine) |
String |
chooseEngineServerAlias(String keyType,
Principal[] issuers,
SSLEngine engine) |
String |
chooseServerAlias(String s,
Principal[] principals,
Socket socket) |
X509Certificate[] |
getCertificateChain(String s) |
String[] |
getClientAliases(String s,
Principal[] principals) |
PrivateKey |
getPrivateKey(String s) |
String[] |
getServerAliases(String s,
Principal[] principals) |
public KeyManagerProxy(String certFilePath, String keyFilePath, int refreshDurationSec, ScheduledExecutorService executor)
public String chooseClientAlias(String[] strings, Principal[] principals, Socket socket)
public X509Certificate[] getCertificateChain(String s)
public PrivateKey getPrivateKey(String s)
public String chooseEngineClientAlias(String[] keyType, Principal[] issuers, SSLEngine engine)
chooseEngineClientAlias in class X509ExtendedKeyManagerpublic String chooseEngineServerAlias(String keyType, Principal[] issuers, SSLEngine engine)
chooseEngineServerAlias in class X509ExtendedKeyManagerCopyright © 2017–2021 Apache Software Foundation. All rights reserved.