- java.lang.Object
-
- javax.net.ssl.KeyManagerFactory
-
- io.netty5.handler.ssl.OpenSslCachingX509KeyManagerFactory
-
public final class OpenSslCachingX509KeyManagerFactory extends KeyManagerFactory
Wraps anotherKeyManagerFactory
and caches its chains / certs for an alias for better performance when usingSslProvider.OPENSSL
orSslProvider.OPENSSL_REFCNT
. Because of the caching its important that the wrappedKeyManagerFactory
sX509KeyManager
s always return the sameX509Certificate
chain andPrivateKey
for the same alias.
-
-
Constructor Summary
Constructors Constructor Description OpenSslCachingX509KeyManagerFactory(KeyManagerFactory factory)
OpenSslCachingX509KeyManagerFactory(KeyManagerFactory factory, int maxCachedEntries)
-
Method Summary
-
Methods inherited from class javax.net.ssl.KeyManagerFactory
getAlgorithm, getDefaultAlgorithm, getInstance, getInstance, getInstance, getKeyManagers, getProvider, init, init
-
-
-
-
Constructor Detail
-
OpenSslCachingX509KeyManagerFactory
public OpenSslCachingX509KeyManagerFactory(KeyManagerFactory factory)
-
OpenSslCachingX509KeyManagerFactory
public OpenSslCachingX509KeyManagerFactory(KeyManagerFactory factory, int maxCachedEntries)
-
-