Package org.apache.pulsar.common.util
Class KeyManagerProxy
java.lang.Object
javax.net.ssl.X509ExtendedKeyManager
org.apache.pulsar.common.util.KeyManagerProxy
- All Implemented Interfaces:
KeyManager,X509KeyManager
This class wraps
X509ExtendedKeyManager and gives opportunity to refresh key-manager with refreshed certs
without changing SslContext.-
Constructor Summary
ConstructorsConstructorDescriptionKeyManagerProxy(String certFilePath, String keyFilePath, int refreshDurationSec, ScheduledExecutorService executor) -
Method Summary
Modifier and TypeMethodDescriptionchooseClientAlias(String[] strings, Principal[] principals, Socket socket) chooseEngineClientAlias(String[] keyType, Principal[] issuers, SSLEngine engine) chooseEngineServerAlias(String keyType, Principal[] issuers, SSLEngine engine) chooseServerAlias(String s, Principal[] principals, Socket socket) String[]getClientAliases(String s, Principal[] principals) String[]getServerAliases(String s, Principal[] principals)
-
Constructor Details
-
KeyManagerProxy
public KeyManagerProxy(String certFilePath, String keyFilePath, int refreshDurationSec, ScheduledExecutorService executor)
-
-
Method Details
-
getClientAliases
-
chooseClientAlias
-
getServerAliases
-
chooseServerAlias
-
getCertificateChain
-
getPrivateKey
-
chooseEngineClientAlias
- Overrides:
chooseEngineClientAliasin classX509ExtendedKeyManager
-
chooseEngineServerAlias
- Overrides:
chooseEngineServerAliasin classX509ExtendedKeyManager
-