Java android.net SSLCertificateSocketFactory fields, constructors, methods, implement or subclass

Example usage for Java android.net SSLCertificateSocketFactory fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.net SSLCertificateSocketFactory.

The text is from its open source code.

Constructor

Method

SocketcreateSocket(InetAddress addr, int port)

This method returns a socket that is not connected.

SocketcreateSocket(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.

SSLSocketFactorygetDefault(int handshakeTimeoutMillis, SSLSessionCache cache)
Returns a new socket factory instance with an optional handshake timeout and SSL session cache.
SocketFactorygetDefault(int handshakeTimeoutMillis)
Returns a new socket factory instance with an optional handshake timeout.
org.apache.http.conn.ssl.SSLSocketFactorygetHttpSocketFactory(int handshakeTimeoutMillis, SSLSessionCache cache)
Returns a socket factory (also named SSLSocketFactory, but in a different namespace) for use with the Apache HTTP stack.
SSLSocketFactorygetInsecure(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.
voidsetHostname(Socket socket, String hostName)
Turns on Server Name Indication (SNI) on a given socket.
voidsetKeyManagers(KeyManager[] keyManagers)
Sets the KeyManager s to be used for connections made by this factory.
voidsetTrustManagers(TrustManager[] trustManager)
Sets the TrustManager s to be used for connections made by this factory.