Package io.netty.handler.ssl
Class OpenSslKeyMaterialProvider
java.lang.Object
io.netty.handler.ssl.OpenSslKeyMaterialProvider
- Direct Known Subclasses:
OpenSslCachingKeyMaterialProvider
,OpenSslX509KeyManagerFactory.OpenSslKeyManagerFactorySpi.ProviderFactory.OpenSslPopulatedKeyMaterialProvider
Provides
OpenSslKeyMaterial
for a given alias.-
Field Summary
Fields -
Constructor Summary
Constructors -
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.(package private) X509KeyManager
Returns the underlyingX509KeyManager
that is used.(package private) static void
validateKeyMaterialSupported
(X509Certificate[] keyCertChain, PrivateKey key, String keyPassword) private static void
validateSupported
(X509Certificate[] certificates) private static void
validateSupported
(PrivateKey key, String password)
-
Field Details
-
keyManager
-
password
-
-
Constructor Details
-
OpenSslKeyMaterialProvider
OpenSslKeyMaterialProvider(X509KeyManager keyManager, String password)
-
-
Method Details
-
validateKeyMaterialSupported
static void validateKeyMaterialSupported(X509Certificate[] keyCertChain, PrivateKey key, String keyPassword) throws SSLException - Throws:
SSLException
-
validateSupported
- Throws:
SSLException
-
validateSupported
- Throws:
SSLException
-
keyManager
X509KeyManager keyManager()Returns the underlyingX509KeyManager
that is used. -
chooseKeyMaterial
Returns theOpenSslKeyMaterial
ornull
(if none) that should be used during the handshake by OpenSSL.- Throws:
Exception
-
destroy
void destroy()Will be invoked once the provider should be destroyed.
-