public class CustomProtocolsSSLFactory extends SSLSocketFactory
构造器和说明 |
---|
CustomProtocolsSSLFactory(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, getDefault
public CustomProtocolsSSLFactory(String... protocols) throws KeyManagementException, NoSuchAlgorithmException
protocols
- 支持协议列表KeyManagementException
- KeyManagementExceptionNoSuchAlgorithmException
- NoSuchAlgorithmExceptionpublic String[] getDefaultCipherSuites()
getDefaultCipherSuites
在类中 SSLSocketFactory
public String[] getSupportedCipherSuites()
getSupportedCipherSuites
在类中 SSLSocketFactory
public Socket createSocket() throws IOException
createSocket
在类中 SocketFactory
IOException
public SSLSocket createSocket(Socket s, String host, int port, boolean autoClose) throws IOException
createSocket
在类中 SSLSocketFactory
IOException
public Socket createSocket(String host, int port) throws IOException
createSocket
在类中 SocketFactory
IOException
public Socket createSocket(String host, int port, InetAddress localHost, int localPort) throws IOException
createSocket
在类中 SocketFactory
IOException
public Socket createSocket(InetAddress host, int port) throws IOException
createSocket
在类中 SocketFactory
IOException
public Socket createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) throws IOException
createSocket
在类中 SocketFactory
IOException
Copyright © 2020. All rights reserved.