Package org.wildfly.security.ssl
Class ConfiguredSSLSocketFactory
- java.lang.Object
-
- javax.net.SocketFactory
-
- javax.net.ssl.SSLSocketFactory
-
- org.wildfly.security.ssl.AbstractDelegatingSSLSocketFactory
-
- org.wildfly.security.ssl.ConfiguredSSLSocketFactory
-
final class ConfiguredSSLSocketFactory extends AbstractDelegatingSSLSocketFactory
- Author:
- David M. Lloyd
-
-
Field Summary
Fields Modifier and Type Field Description private SSLConfiguratorsslConfiguratorprivate SSLContextsslContextprivate booleanwrap
-
Constructor Summary
Constructors Constructor Description ConfiguredSSLSocketFactory(SSLSocketFactory delegate, SSLContext sslContext, SSLConfigurator sslConfigurator, boolean wrap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SocketcreateSocket()SocketcreateSocket(String host, int port)SocketcreateSocket(String host, int port, InetAddress localHost, int localPort)SocketcreateSocket(InetAddress host, int port)SocketcreateSocket(InetAddress address, int port, InetAddress localAddress, int localPort)SocketcreateSocket(Socket socket, InputStream inputStream, boolean autoClose)SocketcreateSocket(Socket s, String host, int port, boolean autoClose)String[]getDefaultCipherSuites()String[]getSupportedCipherSuites()private Socketwrap(Socket orig)-
Methods inherited from class javax.net.ssl.SSLSocketFactory
getDefault
-
-
-
-
Field Detail
-
sslContext
private final SSLContext sslContext
-
sslConfigurator
private final SSLConfigurator sslConfigurator
-
wrap
private final boolean wrap
-
-
Constructor Detail
-
ConfiguredSSLSocketFactory
ConfiguredSSLSocketFactory(SSLSocketFactory delegate, SSLContext sslContext, SSLConfigurator sslConfigurator, boolean wrap)
-
-
Method Detail
-
createSocket
public Socket createSocket(Socket s, String host, int port, boolean autoClose) throws IOException
- Overrides:
createSocketin classAbstractDelegatingSSLSocketFactory- Throws:
IOException
-
createSocket
public Socket createSocket() throws IOException
- Overrides:
createSocketin classAbstractDelegatingSSLSocketFactory- Throws:
IOException
-
createSocket
public Socket createSocket(String host, int port) throws IOException
- Overrides:
createSocketin classAbstractDelegatingSSLSocketFactory- Throws:
IOException
-
createSocket
public Socket createSocket(String host, int port, InetAddress localHost, int localPort) throws IOException
- Overrides:
createSocketin classAbstractDelegatingSSLSocketFactory- Throws:
IOException
-
createSocket
public Socket createSocket(InetAddress host, int port) throws IOException
- Overrides:
createSocketin classAbstractDelegatingSSLSocketFactory- Throws:
IOException
-
createSocket
public Socket createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) throws IOException
- Overrides:
createSocketin classAbstractDelegatingSSLSocketFactory- Throws:
IOException
-
createSocket
public Socket createSocket(Socket socket, InputStream inputStream, boolean autoClose) throws IOException
- Overrides:
createSocketin classAbstractDelegatingSSLSocketFactory- Throws:
IOException
-
getDefaultCipherSuites
public String[] getDefaultCipherSuites()
- Overrides:
getDefaultCipherSuitesin classAbstractDelegatingSSLSocketFactory
-
getSupportedCipherSuites
public String[] getSupportedCipherSuites()
- Overrides:
getSupportedCipherSuitesin classAbstractDelegatingSSLSocketFactory
-
-