-
- All Known Implementing Classes:
DefaultSSLEngineConfiguration
public interface SSLEngineConfigurator
TheSSLEngineConfigurator
interface is implemented by users of theTLSTM
orDTLSTM
transport protocols to configure new TLS (SSL) connections.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
configure(SSLEngine sslEngine)
Configure the supplied SSLEngine for TLS.SSLContext
getSSLContext(boolean useClientMode, TransportStateReference transportStateReference)
Gets the SSLContext for this SSL connection.
-
-
-
Method Detail
-
configure
void configure(SSLEngine sslEngine)
Configure the supplied SSLEngine for TLS. Configuration includes enabled protocol(s), cipher codes, etc.- Parameters:
sslEngine
- aSSLEngine
to configure.
-
getSSLContext
SSLContext getSSLContext(boolean useClientMode, TransportStateReference transportStateReference) throws GeneralSecurityException
Gets the SSLContext for this SSL connection.- Parameters:
useClientMode
-true
if the connection is established in client mode.transportStateReference
- the transportStateReference with additional security information for the SSL connection to establish.- Returns:
- the SSLContext.
- Throws:
GeneralSecurityException
- if the TLS context initialization failed because of configuration errors.
-
-