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

pack-priv Class OpenSslKeyMaterialProvider

extends Object
Class Inheritance
Known Direct Subclasses
io.netty5.handler.ssl.OpenSslX509KeyManagerFactory.OpenSslKeyManagerFactorySpi.ProviderFactory.OpenSslPopulatedKeyMaterialProvider, io.netty5.handler.ssl.OpenSslCachingKeyMaterialProvider
Imports
io.netty.internal.tcnative.SSL, io.netty5.buffer.BufferAllocator, javax.net.ssl.SSLException, .X509KeyManager, java.security.PrivateKey, java.security.cert.X509Certificate

Provides OpenSslKeyMaterial for a given alias.

Field Summary

Modifier and TypeField and Description
private final X509KeyManager
private final String

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

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

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

pack-priv void
destroy()

Will be invoked once the provider should be destroyed.

pack-priv X509KeyManager
keyManager()

Returns the underlying X509KeyManager that is used.

pack-priv static void
private static void
private static void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

keyManagerback to summary
private final X509KeyManager keyManager
passwordback to summary
private final String password

Constructor Detail

OpenSslKeyMaterialProviderback to summary
pack-priv OpenSslKeyMaterialProvider(X509KeyManager keyManager, String password)

Method Detail

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

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

destroyback to summary
pack-priv void destroy()

Will be invoked once the provider should be destroyed.

keyManagerback to summary
pack-priv X509KeyManager keyManager()

Returns the underlying X509KeyManager that is used.

validateKeyMaterialSupportedback to summary
pack-priv static void validateKeyMaterialSupported(X509Certificate[] keyCertChain, PrivateKey key, String keyPassword) throws SSLException
validateSupportedback to summary
private static void validateSupported(PrivateKey key, String password) throws SSLException
validateSupportedback to summary
private static void validateSupported(X509Certificate[] certificates) throws SSLException