public final class OpenSslX509KeyManagerFactory extends KeyManagerFactory
KeyManagerFactory
that pre-compute the keymaterial used when SslProvider.OPENSSL
or
SslProvider.OPENSSL_REFCNT
is used and so will improve handshake times and its performance.
Because the keymaterial is pre-computed any modification to the KeyStore
is ignored after
KeyManagerFactory.init(KeyStore, char[])
is called.
KeyManagerFactory.init(ManagerFactoryParameters)
is not supported by this implementation and so a call to it will always
result in an InvalidAlgorithmParameterException
.Constructor and Description |
---|
OpenSslX509KeyManagerFactory() |
OpenSslX509KeyManagerFactory(Provider provider) |
OpenSslX509KeyManagerFactory(String algorithm,
Provider provider) |
Modifier and Type | Method and Description |
---|---|
static OpenSslX509KeyManagerFactory |
newEngineBased(File certificateChain,
String password)
Create a new initialized
OpenSslX509KeyManagerFactory which loads its PrivateKey directly from
an OpenSSL engine via the
ENGINE_load_private_key
function. |
static OpenSslX509KeyManagerFactory |
newEngineBased(X509Certificate[] certificateChain,
String password)
Create a new initialized
OpenSslX509KeyManagerFactory which loads its PrivateKey directly from
an OpenSSL engine via the
ENGINE_load_private_key
function. |
static OpenSslX509KeyManagerFactory |
newKeyless(File chain)
|
static OpenSslX509KeyManagerFactory |
newKeyless(InputStream chain)
|
static OpenSslX509KeyManagerFactory |
newKeyless(X509Certificate... certificateChain)
Returns a new initialized
OpenSslX509KeyManagerFactory which will provide its private key by using the
OpenSslPrivateKeyMethod . |
getAlgorithm, getDefaultAlgorithm, getInstance, getInstance, getInstance, getKeyManagers, getProvider, init, init
public OpenSslX509KeyManagerFactory()
public OpenSslX509KeyManagerFactory(Provider provider)
public OpenSslX509KeyManagerFactory(String algorithm, Provider provider) throws NoSuchAlgorithmException
NoSuchAlgorithmException
public static OpenSslX509KeyManagerFactory newEngineBased(File certificateChain, String password) throws CertificateException, IOException, KeyStoreException, NoSuchAlgorithmException, UnrecoverableKeyException
OpenSslX509KeyManagerFactory
which loads its PrivateKey
directly from
an OpenSSL engine
via the
ENGINE_load_private_key
function.public static OpenSslX509KeyManagerFactory newEngineBased(X509Certificate[] certificateChain, String password) throws CertificateException, IOException, KeyStoreException, NoSuchAlgorithmException, UnrecoverableKeyException
OpenSslX509KeyManagerFactory
which loads its PrivateKey
directly from
an OpenSSL engine
via the
ENGINE_load_private_key
function.public static OpenSslX509KeyManagerFactory newKeyless(File chain) throws CertificateException, IOException, KeyStoreException, NoSuchAlgorithmException, UnrecoverableKeyException
public static OpenSslX509KeyManagerFactory newKeyless(InputStream chain) throws CertificateException, IOException, KeyStoreException, NoSuchAlgorithmException, UnrecoverableKeyException
public static OpenSslX509KeyManagerFactory newKeyless(X509Certificate... certificateChain) throws CertificateException, IOException, KeyStoreException, NoSuchAlgorithmException, UnrecoverableKeyException
OpenSslX509KeyManagerFactory
which will provide its private key by using the
OpenSslPrivateKeyMethod
.Copyright © 2008–2024 The Netty Project. All rights reserved.