Build 1.0_r1(from source)

android.net.http
Class CertificateChainValidator

java.lang.Object
  extended by android.net.http.CertificateChainValidator

 class CertificateChainValidator
extends Object

Class responsible for all server certificate validation functionality


Method Summary
 SslError doHandshakeAndValidateServerCertificates(HttpsConnection connection, SSLSocket sslSocket, String domain)
          Performs the handshake and server certificates validation
static CertificateChainValidator getInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static CertificateChainValidator getInstance()
Returns:
The singleton instance of the certificator chain validator

doHandshakeAndValidateServerCertificates

public SslError doHandshakeAndValidateServerCertificates(HttpsConnection connection,
                                                         SSLSocket sslSocket,
                                                         String domain)
                                                  throws SSLHandshakeException,
                                                         IOException
Performs the handshake and server certificates validation

Parameters:
sslSocket - The secure connection socket
domain - The website domain
Returns:
An SSL error object if there is an error and null otherwise
Throws:
SSLHandshakeException
IOException

Build 1.0_r1(from source)

Please submit a feedback, bug or feature