Package io.netty.handler.ssl
Class OpenSslX509KeyManagerFactory.OpenSslKeyManagerFactorySpi.ProviderFactory.OpenSslPopulatedKeyMaterialProvider
- java.lang.Object
-
- io.netty.handler.ssl.OpenSslKeyMaterialProvider
-
- io.netty.handler.ssl.OpenSslX509KeyManagerFactory.OpenSslKeyManagerFactorySpi.ProviderFactory.OpenSslPopulatedKeyMaterialProvider
-
private static final class OpenSslX509KeyManagerFactory.OpenSslKeyManagerFactorySpi.ProviderFactory.OpenSslPopulatedKeyMaterialProvider extends OpenSslKeyMaterialProvider
OpenSslKeyMaterialProvider
implementation that pre-compute theOpenSslKeyMaterial
for all aliases.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.lang.String,java.lang.Object>
materialMap
-
Constructor Summary
Constructors Constructor Description OpenSslPopulatedKeyMaterialProvider(javax.net.ssl.X509KeyManager keyManager, java.lang.String password, java.lang.Iterable<java.lang.String> aliases)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) OpenSslKeyMaterial
chooseKeyMaterial(ByteBufAllocator allocator, java.lang.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
-
-
-
-
Method Detail
-
chooseKeyMaterial
OpenSslKeyMaterial chooseKeyMaterial(ByteBufAllocator allocator, java.lang.String alias) throws java.lang.Exception
Description copied from class:OpenSslKeyMaterialProvider
Returns theOpenSslKeyMaterial
ornull
(if none) that should be used during the handshake by OpenSSL.- Overrides:
chooseKeyMaterial
in classOpenSslKeyMaterialProvider
- Throws:
java.lang.Exception
-
destroy
void destroy()
Description copied from class:OpenSslKeyMaterialProvider
Will be invoked once the provider should be destroyed.- Overrides:
destroy
in classOpenSslKeyMaterialProvider
-
-