javax.net.ssl.KeyManager, javax.net.ssl.X509KeyManager@Private
@Evolving
public class ReloadingX509KeystoreManager
extends javax.net.ssl.X509ExtendedKeyManager
X509KeyManager that exposes a method,
loadFrom(Path) to reload its configuration. Note that it is necessary
to implement the X509ExtendedKeyManager to properly delegate
the additional methods, otherwise the SSL handshake will fail.| Constructor | Description |
|---|---|
ReloadingX509KeystoreManager(java.lang.String type,
java.lang.String location,
java.lang.String storePassword,
java.lang.String keyPassword) |
Construct a
Reloading509KeystoreManager |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
chooseClientAlias(java.lang.String[] strings,
java.security.Principal[] principals,
java.net.Socket socket) |
|
java.lang.String |
chooseEngineClientAlias(java.lang.String[] strings,
java.security.Principal[] principals,
javax.net.ssl.SSLEngine sslEngine) |
|
java.lang.String |
chooseEngineServerAlias(java.lang.String s,
java.security.Principal[] principals,
javax.net.ssl.SSLEngine sslEngine) |
|
java.lang.String |
chooseServerAlias(java.lang.String s,
java.security.Principal[] principals,
java.net.Socket socket) |
|
java.security.cert.X509Certificate[] |
getCertificateChain(java.lang.String s) |
|
java.lang.String[] |
getClientAliases(java.lang.String s,
java.security.Principal[] principals) |
|
java.security.PrivateKey |
getPrivateKey(java.lang.String s) |
|
java.lang.String[] |
getServerAliases(java.lang.String s,
java.security.Principal[] principals) |
|
ReloadingX509KeystoreManager |
loadFrom(java.nio.file.Path path) |
public ReloadingX509KeystoreManager(java.lang.String type,
java.lang.String location,
java.lang.String storePassword,
java.lang.String keyPassword)
throws java.io.IOException,
java.security.GeneralSecurityException
Reloading509KeystoreManagertype - type of keystore file, typically 'jks'.location - local path to the keystore file.storePassword - password of the keystore file.keyPassword - The password of the key.java.io.IOException - raised on errors performing I/O.java.security.GeneralSecurityException - thrown if create encryptor error.public java.lang.String chooseEngineClientAlias(java.lang.String[] strings,
java.security.Principal[] principals,
javax.net.ssl.SSLEngine sslEngine)
chooseEngineClientAlias in class javax.net.ssl.X509ExtendedKeyManagerpublic java.lang.String chooseEngineServerAlias(java.lang.String s,
java.security.Principal[] principals,
javax.net.ssl.SSLEngine sslEngine)
chooseEngineServerAlias in class javax.net.ssl.X509ExtendedKeyManagerpublic java.lang.String[] getClientAliases(java.lang.String s,
java.security.Principal[] principals)
public java.lang.String chooseClientAlias(java.lang.String[] strings,
java.security.Principal[] principals,
java.net.Socket socket)
public java.lang.String[] getServerAliases(java.lang.String s,
java.security.Principal[] principals)
public java.lang.String chooseServerAlias(java.lang.String s,
java.security.Principal[] principals,
java.net.Socket socket)
public java.security.cert.X509Certificate[] getCertificateChain(java.lang.String s)
public java.security.PrivateKey getPrivateKey(java.lang.String s)
public ReloadingX509KeystoreManager loadFrom(java.nio.file.Path path)
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.