public class EncryptionArtifactFactory extends Object
| 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.
|
public EncryptionArtifactFactory(ConnectionConfiguration configuration)
configuration - the configuration for which this factory generates artifacts (cannot be null).public KeyManager[] getKeyManagers() throws UnrecoverableKeyException, NoSuchAlgorithmException, KeyStoreException
UnrecoverableKeyExceptionNoSuchAlgorithmExceptionKeyStoreExceptionpublic TrustManager[] getTrustManagers() throws KeyStoreException, NoSuchAlgorithmException
KeyStoreExceptionNoSuchAlgorithmExceptionpublic SSLContext getSSLContext() throws NoSuchAlgorithmException, KeyManagementException, KeyStoreException, UnrecoverableKeyException
NoSuchAlgorithmExceptionKeyManagementExceptionKeyStoreExceptionUnrecoverableKeyExceptionpublic SSLEngine createServerModeSSLEngine() throws UnrecoverableKeyException, NoSuchAlgorithmException, KeyStoreException, KeyManagementException
UnrecoverableKeyExceptionNoSuchAlgorithmExceptionKeyStoreExceptionKeyManagementExceptionpublic SSLEngine createClientModeSSLEngine() throws UnrecoverableKeyException, NoSuchAlgorithmException, KeyStoreException, KeyManagementException
UnrecoverableKeyExceptionNoSuchAlgorithmExceptionKeyStoreExceptionKeyManagementExceptionpublic org.eclipse.jetty.util.ssl.SslContextFactory getSslContextFactory()
public org.apache.mina.filter.ssl.SslFilter createServerModeSslFilter()
throws KeyManagementException,
NoSuchAlgorithmException,
KeyStoreException,
UnrecoverableKeyException
KeyManagementExceptionNoSuchAlgorithmExceptionKeyStoreExceptionUnrecoverableKeyExceptionpublic org.apache.mina.filter.ssl.SslFilter createClientModeSslFilter()
throws KeyManagementException,
NoSuchAlgorithmException,
KeyStoreException,
UnrecoverableKeyException
KeyManagementExceptionNoSuchAlgorithmExceptionKeyStoreExceptionUnrecoverableKeyExceptionpublic static List<String> getSupportedProtocols() throws NoSuchAlgorithmException, KeyManagementException
NoSuchAlgorithmExceptionKeyManagementExceptionpublic static List<String> getDefaultProtocols() throws NoSuchAlgorithmException, KeyManagementException
NoSuchAlgorithmExceptionKeyManagementExceptionpublic static List<String> getSupportedCipherSuites() throws NoSuchAlgorithmException, KeyManagementException
NoSuchAlgorithmExceptionKeyManagementExceptionpublic static List<String> getDefaultCipherSuites() throws NoSuchAlgorithmException, KeyManagementException
NoSuchAlgorithmExceptionKeyManagementExceptionCopyright © 2003-2008 Jive Software.