Class OpenSslCachingX509KeyManagerFactory
java.lang.Object
javax.net.ssl.KeyManagerFactory
io.netty.handler.ssl.OpenSslCachingX509KeyManagerFactory
public final class OpenSslCachingX509KeyManagerFactory
extends javax.net.ssl.KeyManagerFactory
Wraps another
KeyManagerFactory and caches its chains / certs for an alias for better performance when using
SslProvider.OPENSSL or SslProvider.OPENSSL_REFCNT.
Because of the caching its important that the wrapped KeyManagerFactorys X509KeyManagers always
return the same X509Certificate chain and PrivateKey for the same alias.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOpenSslCachingX509KeyManagerFactory(javax.net.ssl.KeyManagerFactory factory) OpenSslCachingX509KeyManagerFactory(javax.net.ssl.KeyManagerFactory factory, int maxCachedEntries) -
Method Summary
Modifier and TypeMethodDescription(package private) OpenSslKeyMaterialProvidernewProvider(java.lang.String password) Methods inherited from class javax.net.ssl.KeyManagerFactory
getAlgorithm, getDefaultAlgorithm, getInstance, getInstance, getInstance, getKeyManagers, getProvider, init, initMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
maxCachedEntries
private final int maxCachedEntries
-
-
Constructor Details
-
OpenSslCachingX509KeyManagerFactory
public OpenSslCachingX509KeyManagerFactory(javax.net.ssl.KeyManagerFactory factory) -
OpenSslCachingX509KeyManagerFactory
public OpenSslCachingX509KeyManagerFactory(javax.net.ssl.KeyManagerFactory factory, int maxCachedEntries)
-
-
Method Details
-
newProvider
-