public class CustomProtocolsSSLFactory extends SSLSocketFactory
| 构造器和说明 |
|---|
CustomProtocolsSSLFactory(SSLSocketFactory factory,
String... protocols)
构造
|
| 限定符和类型 | 方法和说明 |
|---|---|
Socket |
createSocket() |
Socket |
createSocket(InetAddress host,
int port) |
Socket |
createSocket(InetAddress address,
int port,
InetAddress localAddress,
int localPort) |
SSLSocket |
createSocket(Socket s,
String host,
int port,
boolean autoClose) |
Socket |
createSocket(String host,
int port) |
Socket |
createSocket(String host,
int port,
InetAddress localHost,
int localPort) |
String[] |
getDefaultCipherSuites() |
String[] |
getSupportedCipherSuites() |
createSocket, getDefaultpublic CustomProtocolsSSLFactory(SSLSocketFactory factory, String... protocols)
factory - SSLSocketFactoryprotocols - 支持协议列表public String[] getDefaultCipherSuites()
getDefaultCipherSuites 在类中 SSLSocketFactorypublic String[] getSupportedCipherSuites()
getSupportedCipherSuites 在类中 SSLSocketFactorypublic Socket createSocket() throws IOException
createSocket 在类中 SocketFactoryIOExceptionpublic SSLSocket createSocket(Socket s, String host, int port, boolean autoClose) throws IOException
createSocket 在类中 SSLSocketFactoryIOExceptionpublic Socket createSocket(String host, int port) throws IOException
createSocket 在类中 SocketFactoryIOExceptionpublic Socket createSocket(String host, int port, InetAddress localHost, int localPort) throws IOException
createSocket 在类中 SocketFactoryIOExceptionpublic Socket createSocket(InetAddress host, int port) throws IOException
createSocket 在类中 SocketFactoryIOExceptionpublic Socket createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) throws IOException
createSocket 在类中 SocketFactoryIOExceptionCopyright © 2023. All rights reserved.