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
UnrecoverableKeyException
NoSuchAlgorithmException
KeyStoreException
public TrustManager[] getTrustManagers() throws KeyStoreException, NoSuchAlgorithmException
KeyStoreException
NoSuchAlgorithmException
public SSLContext getSSLContext() throws NoSuchAlgorithmException, KeyManagementException, KeyStoreException, UnrecoverableKeyException
NoSuchAlgorithmException
KeyManagementException
KeyStoreException
UnrecoverableKeyException
public SSLEngine createServerModeSSLEngine() throws UnrecoverableKeyException, NoSuchAlgorithmException, KeyStoreException, KeyManagementException
UnrecoverableKeyException
NoSuchAlgorithmException
KeyStoreException
KeyManagementException
public SSLEngine createClientModeSSLEngine() throws UnrecoverableKeyException, NoSuchAlgorithmException, KeyStoreException, KeyManagementException
UnrecoverableKeyException
NoSuchAlgorithmException
KeyStoreException
KeyManagementException
public org.eclipse.jetty.util.ssl.SslContextFactory getSslContextFactory()
public org.apache.mina.filter.ssl.SslFilter createServerModeSslFilter() throws KeyManagementException, NoSuchAlgorithmException, KeyStoreException, UnrecoverableKeyException
KeyManagementException
NoSuchAlgorithmException
KeyStoreException
UnrecoverableKeyException
public org.apache.mina.filter.ssl.SslFilter createClientModeSslFilter() throws KeyManagementException, NoSuchAlgorithmException, KeyStoreException, UnrecoverableKeyException
KeyManagementException
NoSuchAlgorithmException
KeyStoreException
UnrecoverableKeyException
public static List<String> getSupportedProtocols() throws NoSuchAlgorithmException, KeyManagementException
NoSuchAlgorithmException
KeyManagementException
public static List<String> getDefaultProtocols() throws NoSuchAlgorithmException, KeyManagementException
NoSuchAlgorithmException
KeyManagementException
public static List<String> getSupportedCipherSuites() throws NoSuchAlgorithmException, KeyManagementException
NoSuchAlgorithmException
KeyManagementException
public static List<String> getDefaultCipherSuites() throws NoSuchAlgorithmException, KeyManagementException
NoSuchAlgorithmException
KeyManagementException
Copyright © 2003-2008 Jive Software.