public class ProtocolSSLFactory extends SSLSocketFactory
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
CERT_FORMAT_DEFAULT |
static String |
CERT_STANDARD_DEFAULT |
static String |
PROTOCOL_DEFAULT |
createSocket, getDefaultpublic static ProtocolSSLFactory getInstance(KeyManager[] keyManagers) throws Exception
Exceptionpublic static ProtocolSSLFactory getInstance(KeyManager[] keyManagers, TrustManager[] trustManagers) throws Exception
Exceptionpublic static ProtocolSSLFactory getInstance(KeyManager[] keyManagers, TrustManager[] trustManagers, SecureRandom secureRandom) throws Exception
Exceptionpublic static ProtocolSSLFactory getInstance(KeyManager[] keyManagers, TrustManager[] trustManagers, SecureRandom secureRandom, String... protocols) throws Exception
Exceptionpublic static ProtocolSSLFactory getInstance(KeyManager[] keyManagers, TrustManager[] trustManagers, SecureRandom secureRandom, String contextProtocol, String... protocols) throws Exception
Exceptionpublic 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 在类中 SocketFactoryIOExceptionpublic static Set<TrustAnchor> getDefaultRootCAs() throws NoSuchAlgorithmException, KeyStoreException
public static X509TrustManager getDefaultX509TrustManager() throws NoSuchAlgorithmException, KeyStoreException
Copyright © 2020. All rights reserved.