android.net.http
Class CertificateChainValidator
java.lang.Object
android.net.http.CertificateChainValidator
class CertificateChainValidator
- extends Object
Class responsible for all server certificate validation functionality
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 socketdomain - The website domain
- Returns:
- An SSL error object if there is an error and null otherwise
- Throws:
SSLHandshakeException
IOException
Please submit a feedback, bug or feature