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 the OpenSslKeyMaterial for
all aliases.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final java.util.Map<java.lang.String, java.lang.Object> -
Constructor Summary
ConstructorsConstructorDescriptionOpenSslPopulatedKeyMaterialProvider(javax.net.ssl.X509KeyManager keyManager, java.lang.String password, java.lang.Iterable<java.lang.String> aliases) -
Method Summary
Modifier and TypeMethodDescription(package private) OpenSslKeyMaterialchooseKeyMaterial(ByteBufAllocator allocator, java.lang.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, validateKeyMaterialSupportedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
materialMap
private final java.util.Map<java.lang.String, java.lang.Object> materialMap
-
-
Constructor Details
-
OpenSslPopulatedKeyMaterialProvider
OpenSslPopulatedKeyMaterialProvider(javax.net.ssl.X509KeyManager keyManager, java.lang.String password, java.lang.Iterable<java.lang.String> aliases)
-
-
Method Details
-
chooseKeyMaterial
OpenSslKeyMaterial chooseKeyMaterial(ByteBufAllocator allocator, java.lang.String alias) throws java.lang.Exception Description copied from class:OpenSslKeyMaterialProviderReturns theOpenSslKeyMaterialornull(if none) that should be used during the handshake by OpenSSL.- Overrides:
chooseKeyMaterialin classOpenSslKeyMaterialProvider- Throws:
java.lang.Exception
-
destroy
void destroy()Description copied from class:OpenSslKeyMaterialProviderWill be invoked once the provider should be destroyed.- Overrides:
destroyin classOpenSslKeyMaterialProvider
-