public class EncryptionArtifactFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
static SystemProperty<String> |
SSLCONTEXT_PROTOCOL |
static SystemProperty<Class> |
TRUST_MANAGER_CLASS |
| Constructor and Description |
|---|
EncryptionArtifactFactory(ConnectionConfiguration configuration)
Creates a new instance of the factory.
|
| Modifier and Type | Method and Description |
|---|---|
SSLEngine |
createClientModeSSLEngine()
Creates an SSL Engine that is configured to use client mode when handshaking.
|
org.apache.mina.filter.ssl.SslFilter |
createClientModeSslFilter()
Creates an Apache MINA SslFilter that is configured to use client mode when handshaking.
|
SSLEngine |
createServerModeSSLEngine()
Creates a new SSL Engine that is configured to use server mode when handshaking.
|
org.apache.mina.filter.ssl.SslFilter |
createServerModeSslFilter()
Creates an Apache MINA SslFilter that is configured to use server mode when handshaking.
|
static List<String> |
getDefaultCipherSuites()
Returns the names of all encryption cipher suites that are enabled by default.
|
static List<String> |
getDefaultProtocols()
Returns the names of all encryption protocols that are enabled by default.
|
KeyManager[] |
getKeyManagers()
Generates KeyManager instances suitable for connections that are created based on a particular configuration.
|
SSLContext |
getSSLContext()
Generates a new, initialized SSLContext instance that is suitable for connections that are created based on a
particular configuration.
|
org.eclipse.jetty.util.ssl.SslContextFactory |
getSslContextFactory() |
static List<String> |
getSupportedCipherSuites()
Returns the names of all encryption cipher suites that are supported (but not necessarily enabled).
|
static List<String> |
getSupportedProtocols()
Returns the names of all encryption protocols that are supported (but not necessarily enabled).
|
TrustManager[] |
getTrustManagers()
Generates KeyManager instances suitable for connections that are created based on a particular configuration.
|
static SSLContext |
getUninitializedSSLContext()
Generates a new, uninitialized SSLContext instance.
|
public static final SystemProperty<Class> TRUST_MANAGER_CLASS
public static final SystemProperty<String> SSLCONTEXT_PROTOCOL
public EncryptionArtifactFactory(ConnectionConfiguration configuration)
configuration - the configuration for which this factory generates artifacts (cannot be null).public KeyManager[] getKeyManagers() throws UnrecoverableKeyException, NoSuchAlgorithmException, KeyStoreException
UnrecoverableKeyException - if the key could not be recoveredNoSuchAlgorithmException - if the algorithm was unrecognisedKeyStoreException - if there was a problem loading the keystorepublic TrustManager[] getTrustManagers() throws KeyStoreException, NoSuchAlgorithmException
KeyStoreException - if there was a problem accessing the keystoreNoSuchAlgorithmException - if the algorithm is not supportedpublic static SSLContext getUninitializedSSLContext() throws NoSuchAlgorithmException
SSLCONTEXT_PROTOCOL, or,
if that's null, uses the best available protocol from the default configuration
of the JVM.NoSuchAlgorithmException - if the protocol is not supported.public SSLContext getSSLContext() throws NoSuchAlgorithmException, KeyManagementException, KeyStoreException, UnrecoverableKeyException
NoSuchAlgorithmException - if the algorithm is not supportedKeyManagementException - if there was problem manging the ketKeyStoreException - if there was a problem accessing the keystoreUnrecoverableKeyException - if the key could not be recoveredpublic SSLEngine createServerModeSSLEngine() throws UnrecoverableKeyException, NoSuchAlgorithmException, KeyStoreException, KeyManagementException
UnrecoverableKeyException - if the key could not be recoveredNoSuchAlgorithmException - if the algorithm is not supportedKeyStoreException - if there was a problem accessing the keystoreKeyManagementException - if there was problem manging the ketpublic SSLEngine createClientModeSSLEngine() throws UnrecoverableKeyException, NoSuchAlgorithmException, KeyStoreException, KeyManagementException
UnrecoverableKeyException - if the key could not be recoveredNoSuchAlgorithmException - if the algorithm is not supportedKeyStoreException - if there was a problem accessing the keystoreKeyManagementException - if there was problem manging the ketpublic org.eclipse.jetty.util.ssl.SslContextFactory getSslContextFactory()
public org.apache.mina.filter.ssl.SslFilter createServerModeSslFilter()
throws KeyManagementException,
NoSuchAlgorithmException,
KeyStoreException,
UnrecoverableKeyException
KeyManagementException - if there was problem manging the ketNoSuchAlgorithmException - if the algorithm is not supportedKeyStoreException - if there was a problem accessing the keystoreUnrecoverableKeyException - if the key could not be recoveredpublic org.apache.mina.filter.ssl.SslFilter createClientModeSslFilter()
throws KeyManagementException,
NoSuchAlgorithmException,
KeyStoreException,
UnrecoverableKeyException
KeyManagementException - if there was problem manging the ketNoSuchAlgorithmException - if the algorithm is not supportedKeyStoreException - if there was a problem accessing the keystoreUnrecoverableKeyException - if the key could not be recoveredpublic static List<String> getSupportedProtocols() throws NoSuchAlgorithmException, KeyManagementException
NoSuchAlgorithmException - if the algorithm is not supportedKeyManagementException - if there was problem manging the ketpublic static List<String> getDefaultProtocols() throws NoSuchAlgorithmException, KeyManagementException
NoSuchAlgorithmException - if the algorithm is not supportedKeyManagementException - if there was problem manging the ketpublic static List<String> getSupportedCipherSuites() throws NoSuchAlgorithmException, KeyManagementException
NoSuchAlgorithmException - if the algorithm is not supportedKeyManagementException - if there was problem manging the ketpublic static List<String> getDefaultCipherSuites() throws NoSuchAlgorithmException, KeyManagementException
NoSuchAlgorithmException - if the algorithm is not supportedKeyManagementException - if there was problem manging the ketCopyright © 2003–2019 Ignite Realtime. All rights reserved.