Class OpenSslCachingKeyMaterialProvider
java.lang.Object
io.netty.handler.ssl.OpenSslKeyMaterialProvider
io.netty.handler.ssl.OpenSslCachingKeyMaterialProvider
OpenSslKeyMaterialProvider that will cache the OpenSslKeyMaterial to reduce the overhead
of parsing the chain and the key for generation of the material.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ConcurrentMap<String, OpenSslKeyMaterial> private booleanprivate final int -
Constructor Summary
ConstructorsConstructorDescriptionOpenSslCachingKeyMaterialProvider(X509KeyManager keyManager, String password, int maxCachedEntries) -
Method Summary
Modifier and TypeMethodDescription(package private) OpenSslKeyMaterialchooseKeyMaterial(ByteBufAllocator allocator, String alias) Returns theOpenSslKeyMaterialornull(if none) that should be used during the handshake by OpenSSL.(package private) voiddestroy()Will be invoked once the provider should be destroyed.Methods inherited from class OpenSslKeyMaterialProvider
keyManager, validateKeyMaterialSupported
-
Field Details
-
maxCachedEntries
private final int maxCachedEntries -
full
private volatile boolean full -
cache
-
-
Constructor Details
-
OpenSslCachingKeyMaterialProvider
OpenSslCachingKeyMaterialProvider(X509KeyManager keyManager, String password, int maxCachedEntries)
-
-
Method Details
-
chooseKeyMaterial
Description copied from class:OpenSslKeyMaterialProviderReturns theOpenSslKeyMaterialornull(if none) that should be used during the handshake by OpenSSL.- Overrides:
chooseKeyMaterialin classOpenSslKeyMaterialProvider- Throws:
Exception
-
destroy
void destroy()Description copied from class:OpenSslKeyMaterialProviderWill be invoked once the provider should be destroyed.- Overrides:
destroyin classOpenSslKeyMaterialProvider
-