Package org.infinispan.commons.util
Class ReloadingX509KeyManager
java.lang.Object
javax.net.ssl.X509ExtendedKeyManager
org.infinispan.commons.util.ReloadingX509KeyManager
- All Implemented Interfaces:
Closeable
,AutoCloseable
,KeyManager
,X509KeyManager
A
X509ExtendedKeyManager
which uses a @FileWatcher
to check for changes.-
Constructor Summary
ConstructorDescriptionReloadingX509KeyManager
(FileWatcher watcher, Path path, Function<Path, X509ExtendedKeyManager> action) -
Method Summary
Modifier and TypeMethodDescriptionchooseClientAlias
(String[] keyType, Principal[] issuers, Socket socket) chooseEngineClientAlias
(String[] keyType, Principal[] issuers, SSLEngine engine) chooseEngineServerAlias
(String keyType, Principal[] issuers, SSLEngine engine) chooseServerAlias
(String keyType, Principal[] issuers, Socket socket) void
close()
getCertificateChain
(String alias) String[]
getClientAliases
(String keyType, Principal[] issuers) getPrivateKey
(String alias) String[]
getServerAliases
(String keyType, Principal[] issuers)
-
Constructor Details
-
ReloadingX509KeyManager
public ReloadingX509KeyManager(FileWatcher watcher, Path path, Function<Path, X509ExtendedKeyManager> action)
-
-
Method Details
-
getClientAliases
- Specified by:
getClientAliases
in interfaceX509KeyManager
-
chooseClientAlias
- Specified by:
chooseClientAlias
in interfaceX509KeyManager
-
getServerAliases
- Specified by:
getServerAliases
in interfaceX509KeyManager
-
chooseServerAlias
- Specified by:
chooseServerAlias
in interfaceX509KeyManager
-
getCertificateChain
- Specified by:
getCertificateChain
in interfaceX509KeyManager
-
getPrivateKey
- Specified by:
getPrivateKey
in interfaceX509KeyManager
-
chooseEngineClientAlias
- Overrides:
chooseEngineClientAlias
in classX509ExtendedKeyManager
-
chooseEngineServerAlias
- Overrides:
chooseEngineServerAlias
in classX509ExtendedKeyManager
-
lastLoaded
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-