Class DefaultTcpSSLContextSupport
java.lang.Object
org.springframework.integration.ip.tcp.connection.DefaultTcpSSLContextSupport
- All Implemented Interfaces:
- TcpSSLContextSupport
Default implementation of 
TcpSSLContextSupport; uses a
 'TLS' (by default) SSLContext, initialized with 'JKS'
 keystores, managed by 'SunX509' Key and Trust managers.- Since:
- 2.1
- Author:
- Gary Russell
- 
Constructor SummaryConstructorsConstructorDescriptionDefaultTcpSSLContextSupport(String keyStore, String trustStore, String keyStorePassword, String trustStorePassword) Prepares for the creation of an SSLContext using the supplied key/trust stores and passwords.
- 
Method SummaryModifier and TypeMethodDescriptionGets an SSLContext.voidsetKeyStoreType(String keyStoreType) Set the key store type.voidsetProtocol(String protocol) The protocol used inSSLContext.getInstance(String); default "TLS".voidsetTrustStoreType(String trustStoreType) Set the trust store type.
- 
Constructor Details- 
DefaultTcpSSLContextSupport
 
- 
- 
Method Details- 
setKeyStoreTypeSet the key store type. Default JKS.- Parameters:
- keyStoreType- the type.
- Since:
- 5.0.8
 
- 
setTrustStoreTypeSet the trust store type. Default JKS.- Parameters:
- trustStoreType- the type.
- Since:
- 5.0.8
 
- 
getSSLContextDescription copied from interface:TcpSSLContextSupportGets an SSLContext.- Specified by:
- getSSLContextin interface- TcpSSLContextSupport
- Returns:
- the SSLContext.
- Throws:
- GeneralSecurityException- Any GeneralSecurityException.
- IOException- Any IOException.
 
- 
setProtocolThe protocol used inSSLContext.getInstance(String); default "TLS".- Parameters:
- protocol- The protocol.
 
 
-