public final class OpenSslX509KeyManagerFactory
extends javax.net.ssl.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
.构造器和说明 |
---|
OpenSslX509KeyManagerFactory() |
OpenSslX509KeyManagerFactory(java.security.Provider provider) |
OpenSslX509KeyManagerFactory(java.lang.String algorithm,
java.security.Provider provider) |
限定符和类型 | 方法和说明 |
---|---|
static OpenSslX509KeyManagerFactory |
newEngineBased(java.io.File certificateChain,
java.lang.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(java.security.cert.X509Certificate[] certificateChain,
java.lang.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(java.io.File chain)
|
static OpenSslX509KeyManagerFactory |
newKeyless(java.io.InputStream chain)
|
static OpenSslX509KeyManagerFactory |
newKeyless(java.security.cert.X509Certificate... certificateChain)
Returns a new initialized
OpenSslX509KeyManagerFactory which will provide its private key by using the
OpenSslPrivateKeyMethod . |
public OpenSslX509KeyManagerFactory()
public OpenSslX509KeyManagerFactory(java.security.Provider provider)
public OpenSslX509KeyManagerFactory(java.lang.String algorithm, java.security.Provider provider) throws java.security.NoSuchAlgorithmException
java.security.NoSuchAlgorithmException
public static OpenSslX509KeyManagerFactory newEngineBased(java.io.File certificateChain, java.lang.String password) throws java.security.cert.CertificateException, java.io.IOException, java.security.KeyStoreException, java.security.NoSuchAlgorithmException, java.security.UnrecoverableKeyException
OpenSslX509KeyManagerFactory
which loads its PrivateKey
directly from
an OpenSSL engine
via the
ENGINE_load_private_key
function.java.security.cert.CertificateException
java.io.IOException
java.security.KeyStoreException
java.security.NoSuchAlgorithmException
java.security.UnrecoverableKeyException
public static OpenSslX509KeyManagerFactory newEngineBased(java.security.cert.X509Certificate[] certificateChain, java.lang.String password) throws java.security.cert.CertificateException, java.io.IOException, java.security.KeyStoreException, java.security.NoSuchAlgorithmException, java.security.UnrecoverableKeyException
OpenSslX509KeyManagerFactory
which loads its PrivateKey
directly from
an OpenSSL engine
via the
ENGINE_load_private_key
function.java.security.cert.CertificateException
java.io.IOException
java.security.KeyStoreException
java.security.NoSuchAlgorithmException
java.security.UnrecoverableKeyException
public static OpenSslX509KeyManagerFactory newKeyless(java.io.File chain) throws java.security.cert.CertificateException, java.io.IOException, java.security.KeyStoreException, java.security.NoSuchAlgorithmException, java.security.UnrecoverableKeyException
java.security.cert.CertificateException
java.io.IOException
java.security.KeyStoreException
java.security.NoSuchAlgorithmException
java.security.UnrecoverableKeyException
public static OpenSslX509KeyManagerFactory newKeyless(java.io.InputStream chain) throws java.security.cert.CertificateException, java.io.IOException, java.security.KeyStoreException, java.security.NoSuchAlgorithmException, java.security.UnrecoverableKeyException
java.security.cert.CertificateException
java.io.IOException
java.security.KeyStoreException
java.security.NoSuchAlgorithmException
java.security.UnrecoverableKeyException
public static OpenSslX509KeyManagerFactory newKeyless(java.security.cert.X509Certificate... certificateChain) throws java.security.cert.CertificateException, java.io.IOException, java.security.KeyStoreException, java.security.NoSuchAlgorithmException, java.security.UnrecoverableKeyException
OpenSslX509KeyManagerFactory
which will provide its private key by using the
OpenSslPrivateKeyMethod
.java.security.cert.CertificateException
java.io.IOException
java.security.KeyStoreException
java.security.NoSuchAlgorithmException
java.security.UnrecoverableKeyException