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