加载中...
The Wayback Machine - https://sup1a9wrlpyh5li9ro.vcoronado.top/web/20090224061938/http://developer.android.com:80/reference/android/net/SSLCertificateSocketFactory.html
public class

SSLCertificateSocketFactory

extends SSLSocketFactory
java.lang.Object
   ↳ javax.net.SocketFactory
     ↳ javax.net.ssl.SSLSocketFactory
       ↳ android.net.SSLCertificateSocketFactory

Summary

Public Constructors
SSLCertificateSocketFactory(int socketReadTimeoutForSslHandshake)
Public Methods
Socket createSocket(String s, int i)
Socket createSocket(InetAddress inaddr, int i, InetAddress inaddr2, int j)
Socket createSocket(String s, int i, InetAddress inaddr, int j)
Socket createSocket(InetAddress inaddr, int i)
Socket createSocket(Socket socket, String s, int i, boolean flag)
static SocketFactory getDefault(int socketReadTimeoutForSslHandshake)
Returns a default instantiation of a new socket factory which only allows SSL connections with valid certificates.
String[] getDefaultCipherSuites()
String[] getSupportedCipherSuites()
[Expand]
Inherited Methods
From class javax.net.ssl.SSLSocketFactory
From class javax.net.SocketFactory
From class java.lang.Object

Public Constructors

public SSLCertificateSocketFactory (int socketReadTimeoutForSslHandshake)

Public Methods

public Socket createSocket (String s, int i)

Throws
IOException

public Socket createSocket (InetAddress inaddr, int i, InetAddress inaddr2, int j)

Throws
IOException

public Socket createSocket (String s, int i, InetAddress inaddr, int j)

Throws
IOException

public Socket createSocket (InetAddress inaddr, int i)

Throws
IOException

public Socket createSocket (Socket socket, String s, int i, boolean flag)

Throws
IOException

public static SocketFactory getDefault (int socketReadTimeoutForSslHandshake)

Returns a default instantiation of a new socket factory which only allows SSL connections with valid certificates.

Parameters
socketReadTimeoutForSslHandshake the socket read timeout used for performing ssl handshake. The socket read timeout is set back to 0 after the handshake.
Returns
  • a new SocketFactory, or null on error

public String[] getDefaultCipherSuites ()

public String[] getSupportedCipherSuites ()