public class SSLSocketFactoryEx extends SSLSocketFactory
| Constructor and Description |
|---|
SSLSocketFactoryEx(KeyManager[] km,
TrustManager[] tm,
SecureRandom random,
Settings settings)
Constructs a new SSLSocketFactory.
|
SSLSocketFactoryEx(Settings settings)
Constructs a new SSLSocketFactory.
|
SSLSocketFactoryEx(SSLContext ctx,
Settings settings)
Constructs a new SSLSocketFactory.
|
| Modifier and Type | Method and Description |
|---|---|
Socket |
createSocket(InetAddress host,
int port)
Creates a new SSL Socket.
|
Socket |
createSocket(InetAddress address,
int port,
InetAddress localAddress,
int localPort)
Creates a new SSL Socket.
|
Socket |
createSocket(Socket s,
String host,
int port,
boolean autoClose)
Creates an SSL Socket.
|
Socket |
createSocket(String host,
int port)
Creates a new SSL Socket.
|
Socket |
createSocket(String host,
int port,
InetAddress localHost,
int localPort)
Creates a new SSL Socket.
|
String[] |
getDefaultCipherSuites()
Returns the default cipher suites.
|
String[] |
getDefaultProtocols()
Returns the default protocols.
|
protected String[] |
getProtocolList()
Returns the protocol list.
|
String[] |
getSupportedCipherSuites()
Returns the supported cipher suites.
|
String[] |
getSupportedProtocols()
Returns the supported protocols.
|
createSocket, getDefaultcreateSocketpublic SSLSocketFactoryEx(Settings settings) throws NoSuchAlgorithmException, KeyManagementException
settings - reference to the configured settingsNoSuchAlgorithmException - thrown when an algorithm is not
supportedKeyManagementException - thrown if initialization failspublic SSLSocketFactoryEx(KeyManager[] km, TrustManager[] tm, SecureRandom random, Settings settings) throws NoSuchAlgorithmException, KeyManagementException
km - the key managertm - the trust managerrandom - secure randomsettings - reference to the configured settingsNoSuchAlgorithmException - thrown when an algorithm is not
supportedKeyManagementException - thrown if initialization failspublic SSLSocketFactoryEx(SSLContext ctx, Settings settings) throws NoSuchAlgorithmException, KeyManagementException
ctx - the SSL contextsettings - reference to the configured settingsNoSuchAlgorithmException - thrown when an algorithm is not
supportedKeyManagementException - thrown if initialization failspublic String[] getDefaultCipherSuites()
getDefaultCipherSuites in class SSLSocketFactorypublic String[] getSupportedCipherSuites()
getSupportedCipherSuites in class SSLSocketFactorypublic String[] getDefaultProtocols()
public String[] getSupportedProtocols()
public Socket createSocket(Socket s, String host, int port, boolean autoClose) throws IOException
createSocket in class SSLSocketFactorys - the base sockethost - the hostport - the portautoClose - if the socket should auto-closeIOException - thrown if the creation failspublic Socket createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) throws IOException
createSocket in class SocketFactoryaddress - the address to connect toport - the port numberlocalAddress - the local addresslocalPort - the local portIOException - thrown if the creation failspublic Socket createSocket(String host, int port, InetAddress localHost, int localPort) throws IOException
createSocket in class SocketFactoryhost - the host to connect toport - the port to connect tolocalHost - the local hostlocalPort - the local portIOException - thrown if the creation failspublic Socket createSocket(InetAddress host, int port) throws IOException
createSocket in class SocketFactoryhost - the host to connect toport - the port to connect toIOException - thrown if the creation failspublic Socket createSocket(String host, int port) throws IOException
createSocket in class SocketFactoryhost - the host to connect toport - the port to connect toIOException - thrown if the creation failsprotected String[] getProtocolList()
Copyright © 2012–2019 OWASP. All rights reserved.