Package io.netty.handler.ssl
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 boolean
private final int
-
Constructor Summary
ConstructorsConstructorDescriptionOpenSslCachingKeyMaterialProvider
(X509KeyManager keyManager, String password, int maxCachedEntries) -
Method Summary
Modifier and TypeMethodDescription(package private) OpenSslKeyMaterial
chooseKeyMaterial
(ByteBufAllocator allocator, String alias) Returns theOpenSslKeyMaterial
ornull
(if none) that should be used during the handshake by OpenSSL.(package private) void
destroy()
Will be invoked once the provider should be destroyed.Methods inherited from class io.netty.handler.ssl.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:OpenSslKeyMaterialProvider
Returns theOpenSslKeyMaterial
ornull
(if none) that should be used during the handshake by OpenSSL.- Overrides:
chooseKeyMaterial
in classOpenSslKeyMaterialProvider
- Throws:
Exception
-
destroy
void destroy()Description copied from class:OpenSslKeyMaterialProvider
Will be invoked once the provider should be destroyed.- Overrides:
destroy
in classOpenSslKeyMaterialProvider
-