Top Description Fields Constructors Methods
io.netty.handler.ssl

pack-priv final Class OpenSslCachingKeyMaterialProvider

extends OpenSslKeyMaterialProvider
Class Inheritance
Imports
io.netty.buffer.ByteBufAllocator, javax.net.ssl.X509KeyManager, java.util.Iterator, java.util.concurrent.ConcurrentHashMap, .ConcurrentMap

OpenSslKeyMaterialProvider that will cache the OpenSslKeyMaterial to reduce the overhead of parsing the chain and the key for generation of the material.

Field Summary

Modifier and TypeField and Description
private final ConcurrentMap<String, OpenSslKeyMaterial>
private volatile boolean
private final int

Constructor Summary

AccessConstructor and Description
pack-priv
OpenSslCachingKeyMaterialProvider(X509KeyManager keyManager, String password, int maxCachedEntries)

Method Summary

Modifier and TypeMethod and Description
pack-priv OpenSslKeyMaterial
chooseKeyMaterial(ByteBufAllocator allocator, String alias)

Overrides io.netty.handler.ssl.OpenSslKeyMaterialProvider.chooseKeyMaterial.

Returns the OpenSslKeyMaterial or null (if none) that should be used during the handshake by OpenSSL.
pack-priv void
destroy()

Overrides io.netty.handler.ssl.OpenSslKeyMaterialProvider.destroy.

Will be invoked once the provider should be destroyed.
Inherited from io.netty.handler.ssl.OpenSslKeyMaterialProvider:
keyManagervalidateKeyMaterialSupported

Field Detail

cacheback to summary
private final ConcurrentMap<String, OpenSslKeyMaterial> cache
fullback to summary
private volatile boolean full
maxCachedEntriesback to summary
private final int maxCachedEntries

Constructor Detail

OpenSslCachingKeyMaterialProviderback to summary
pack-priv OpenSslCachingKeyMaterialProvider(X509KeyManager keyManager, String password, int maxCachedEntries)

Method Detail

chooseKeyMaterialback to summary
pack-priv OpenSslKeyMaterial chooseKeyMaterial(ByteBufAllocator allocator, String alias) throws Exception

Overrides io.netty.handler.ssl.OpenSslKeyMaterialProvider.chooseKeyMaterial.

Doc from io.netty.handler.ssl.OpenSslKeyMaterialProvider.chooseKeyMaterial.

Returns the OpenSslKeyMaterial or null (if none) that should be used during the handshake by OpenSSL.

Annotations
@Override
destroyback to summary
pack-priv void destroy()

Overrides io.netty.handler.ssl.OpenSslKeyMaterialProvider.destroy.

Doc from io.netty.handler.ssl.OpenSslKeyMaterialProvider.destroy.

Will be invoked once the provider should be destroyed.

Annotations
@Override