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) OpenSslKeyMaterialchooseKeyMaterial(ByteBufAllocator allocator, 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.(package private) X509KeyManagerReturns the underlyingX509KeyManagerthat is used.(package private) static voidvalidateKeyMaterialSupported(X509Certificate[] keyCertChain, PrivateKey key, String keyPassword) private static voidvalidateSupported(X509Certificate[] certificates) private static voidvalidateSupported(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 underlyingX509KeyManagerthat is used. -
chooseKeyMaterial
Returns theOpenSslKeyMaterialornull(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.
-