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 SSLConfigurator
sslConfigurator
private SSLContext
sslContext
private boolean
wrap
-
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 Socket
createSocket()
Socket
createSocket(String host, int port)
Socket
createSocket(String host, int port, InetAddress localHost, int localPort)
Socket
createSocket(InetAddress host, int port)
Socket
createSocket(InetAddress address, int port, InetAddress localAddress, int localPort)
Socket
createSocket(Socket socket, InputStream inputStream, boolean autoClose)
Socket
createSocket(Socket s, String host, int port, boolean autoClose)
String[]
getDefaultCipherSuites()
String[]
getSupportedCipherSuites()
private Socket
wrap(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:
createSocket
in classAbstractDelegatingSSLSocketFactory
- Throws:
IOException
-
createSocket
public Socket createSocket() throws IOException
- Overrides:
createSocket
in classAbstractDelegatingSSLSocketFactory
- Throws:
IOException
-
createSocket
public Socket createSocket(String host, int port) throws IOException
- Overrides:
createSocket
in classAbstractDelegatingSSLSocketFactory
- Throws:
IOException
-
createSocket
public Socket createSocket(String host, int port, InetAddress localHost, int localPort) throws IOException
- Overrides:
createSocket
in classAbstractDelegatingSSLSocketFactory
- Throws:
IOException
-
createSocket
public Socket createSocket(InetAddress host, int port) throws IOException
- Overrides:
createSocket
in classAbstractDelegatingSSLSocketFactory
- Throws:
IOException
-
createSocket
public Socket createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) throws IOException
- Overrides:
createSocket
in classAbstractDelegatingSSLSocketFactory
- Throws:
IOException
-
createSocket
public Socket createSocket(Socket socket, InputStream inputStream, boolean autoClose) throws IOException
- Overrides:
createSocket
in classAbstractDelegatingSSLSocketFactory
- Throws:
IOException
-
getDefaultCipherSuites
public String[] getDefaultCipherSuites()
- Overrides:
getDefaultCipherSuites
in classAbstractDelegatingSSLSocketFactory
-
getSupportedCipherSuites
public String[] getSupportedCipherSuites()
- Overrides:
getSupportedCipherSuites
in classAbstractDelegatingSSLSocketFactory
-
-