Example usage for Java android.net SSLCertificateSocketFactory fields, constructors, methods, implement or subclass
The text is from its open source code.
Socket | createSocket(InetAddress addr, int port) This method returns a socket that is not connected. |
Socket | createSocket(String host, int port) By default, this method returns a connected socket and verifies the peer's certificate hostname after connecting using the HostnameVerifier obtained from HttpsURLConnection.getDefaultHostnameVerifier() ; if this instance was created with #getInsecure(int,SSLSessionCache) , it returns a socket that is not connected instead. |
SSLSocketFactory | getDefault(int handshakeTimeoutMillis, SSLSessionCache cache) Returns a new socket factory instance with an optional handshake timeout and SSL session cache. |
SocketFactory | getDefault(int handshakeTimeoutMillis) Returns a new socket factory instance with an optional handshake timeout. |
org.apache.http.conn.ssl.SSLSocketFactory | getHttpSocketFactory(int handshakeTimeoutMillis, SSLSessionCache cache) Returns a socket factory (also named SSLSocketFactory, but in a different namespace) for use with the Apache HTTP stack. |
SSLSocketFactory | getInsecure(int handshakeTimeoutMillis, SSLSessionCache cache) Returns a new instance of a socket factory with all SSL security checks disabled, using an optional handshake timeout and SSL session cache. |
void | setHostname(Socket socket, String hostName) Turns on Server Name Indication (SNI) on a given socket. |
void | setKeyManagers(KeyManager[] keyManagers) Sets the KeyManager s to be used for connections made by this factory. |
void | setTrustManagers(TrustManager[] trustManager) Sets the TrustManager s to be used for connections made by this factory. |