android.net
Class SSLCertificateSocketFactory
java.lang.Object
javax.net.SocketFactory
javax.net.ssl.SSLSocketFactory
android.net.SSLCertificateSocketFactory
public class SSLCertificateSocketFactory
- extends SSLSocketFactory
Method Summary |
Socket |
createSocket()
|
Socket |
createSocket(InetAddress addr,
int port)
|
Socket |
createSocket(InetAddress addr,
int port,
InetAddress localAddr,
int localPort)
|
Socket |
createSocket(Socket k,
String host,
int port,
boolean close)
|
Socket |
createSocket(String host,
int port)
|
Socket |
createSocket(String host,
int port,
InetAddress localAddr,
int localPort)
|
static SocketFactory |
getDefault(int handshakeTimeoutMillis)
|
static SSLSocketFactory |
getDefault(int handshakeTimeoutMillis,
SSLSessionCache cache)
|
String[] |
getDefaultCipherSuites()
|
static org.apache.http.conn.ssl.SSLSocketFactory |
getHttpSocketFactory(int handshakeTimeoutMillis,
SSLSessionCache cache)
|
static SSLSocketFactory |
getInsecure(int handshakeTimeoutMillis,
SSLSessionCache cache)
|
String[] |
getSupportedCipherSuites()
|
void |
setKeyManagers(KeyManager[] keyManagers)
|
void |
setTrustManagers(TrustManager[] trustManager)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SSLCertificateSocketFactory
public SSLCertificateSocketFactory(int handshakeTimeoutMillis)
getDefault
public static SocketFactory getDefault(int handshakeTimeoutMillis)
getDefault
public static SSLSocketFactory getDefault(int handshakeTimeoutMillis,
SSLSessionCache cache)
getInsecure
public static SSLSocketFactory getInsecure(int handshakeTimeoutMillis,
SSLSessionCache cache)
getHttpSocketFactory
public static org.apache.http.conn.ssl.SSLSocketFactory getHttpSocketFactory(int handshakeTimeoutMillis,
SSLSessionCache cache)
setTrustManagers
public void setTrustManagers(TrustManager[] trustManager)
setKeyManagers
public void setKeyManagers(KeyManager[] keyManagers)
createSocket
public Socket createSocket(Socket k,
String host,
int port,
boolean close)
throws IOException
- Specified by:
createSocket
in class SSLSocketFactory
- Throws:
IOException
createSocket
public Socket createSocket()
throws IOException
- Overrides:
createSocket
in class SocketFactory
- Throws:
IOException
createSocket
public Socket createSocket(InetAddress addr,
int port,
InetAddress localAddr,
int localPort)
throws IOException
- Specified by:
createSocket
in class SocketFactory
- Throws:
IOException
createSocket
public Socket createSocket(InetAddress addr,
int port)
throws IOException
- Specified by:
createSocket
in class SocketFactory
- Throws:
IOException
createSocket
public Socket createSocket(String host,
int port,
InetAddress localAddr,
int localPort)
throws IOException
- Specified by:
createSocket
in class SocketFactory
- Throws:
IOException
createSocket
public Socket createSocket(String host,
int port)
throws IOException
- Specified by:
createSocket
in class SocketFactory
- Throws:
IOException
getDefaultCipherSuites
public String[] getDefaultCipherSuites()
- Specified by:
getDefaultCipherSuites
in class SSLSocketFactory
getSupportedCipherSuites
public String[] getSupportedCipherSuites()
- Specified by:
getSupportedCipherSuites
in class SSLSocketFactory
Copyright © 2008-2012. All Rights Reserved.