IT. Expert System.

Android Reference

CertificateChainValidator


android.net.http

Class CertificateChainValidator



  • public class CertificateChainValidator
    extends Object
    Class responsible for all server certificate validation functionality
    • Method Detail

      • getInstance

        public static CertificateChainValidator getInstance()
        Returns:
        The singleton instance of the certificates chain validator
      • doHandshakeAndValidateServerCertificates

        public SslError doHandshakeAndValidateServerCertificates(HttpsConnection connection,
                                                        SSLSocket sslSocket,
                                                        String domain)
                                                          throws IOException
        Performs the handshake and server certificates validation Notice a new chain will be rebuilt by tracing the issuer and subject before calling checkServerTrusted(). And if the last traced certificate is self issued and it is expired, it will be dropped.
        Parameters:
        sslSocket - The secure connection socket
        domain - The website domain
        Returns:
        An SSL error object if there is an error and null otherwise
        Throws:
        IOException
      • verifyServerCertificates

        public static SslError verifyServerCertificates(byte[][] certChain,
                                        String domain,
                                        String authType)
                                                 throws IOException
        Similar to doHandshakeAndValidateServerCertificates but exposed to JNI for use by Chromium HTTPS stack to validate the cert chain.
        Parameters:
        certChain - The bytes for certificates in ASN.1 DER encoded certificates format.
        domain - The full website hostname and domain
        authType - The authentication type for the cert chain
        Returns:
        An SSL error object if there is an error and null otherwise
        Throws:
        IOException
      • handleTrustStorageUpdate

        public static void handleTrustStorageUpdate()
        Handles updates to credential storage.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 262 / 158763926. Delta: 0.03293 с