Android
android.net
public class

android.net.SSLCertificateSocketFactory

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

Summary

Public Constructors

            SSLCertificateSocketFactory()

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()
Returns a default instantiation of a new socket factory which only allows SSL connections with valid certificates.
          String[]  getDefaultCipherSuites()
          String[]  getSupportedCipherSuites()
Methods inherited from class javax.net.ssl.SSLSocketFactory
Methods inherited from class javax.net.SocketFactory
Methods inherited from class java.lang.Object

Details

Public Constructors

public SSLCertificateSocketFactory()

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()

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

Returns

  • a new SocketFactory, or null on error

public String[] getDefaultCipherSuites()

public String[] getSupportedCipherSuites()

Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:56