IT. Expert System.

Android Reference

TrustManagerImpl


org.apache.harmony.xnet.provider.jsse

Class TrustManagerImpl

  • All Implemented Interfaces:
    TrustManager, X509TrustManager


    public final class TrustManagerImpl
    extends Object
    implements X509TrustManager
    TrustManager implementation. The implementation is based on CertPathValidator PKIX and CertificateFactory X509 implementations. This implementations should be provided by some certification provider.
    See Also:
    X509TrustManager
    • Constructor Detail

      • TrustManagerImpl

        public TrustManagerImpl(KeyStore keyStore)
        Creates X509TrustManager based on a keystore
        Parameters:
        ks -
    • Method Detail

      • checkClientTrusted

        public void checkClientTrusted(X509Certificate[] chain,
                              String authType)
                                throws CertificateException
        Description copied from interface: X509TrustManager
        Checks whether the specified certificate chain (partial or complete) can be validated and is trusted for client authentication for the specified authentication type.
        Specified by:
        checkClientTrusted in interface X509TrustManager
        Parameters:
        chain - the certificate chain to validate.
        authType - the authentication type used.
        Throws:
        CertificateException - if the certificate chain can't be validated or isn't trusted.
      • checkServerTrusted

        public void checkServerTrusted(X509Certificate[] chain,
                              String authType)
                                throws CertificateException
        Description copied from interface: X509TrustManager
        Checks whether the specified certificate chain (partial or complete) can be validated and is trusted for server authentication for the specified key exchange algorithm.
        Specified by:
        checkServerTrusted in interface X509TrustManager
        Parameters:
        chain - the certificate chain to validate.
        authType - the key exchange algorithm name.
        Throws:
        CertificateException - if the certificate chain can't be validated or isn't trusted.
      • checkServerTrusted

        public List<X509Certificate> checkServerTrusted(X509Certificate[] chain,
                                               String authType,
                                               String host)
                                                 throws CertificateException
        Validates whether a server is trusted. If hostname is given and non-null it also checks if chain is pinned appropriately for that host. If null, it does not check for pinned certs. The return value is a list of the certificates used for making the trust decision.
        Throws:
        CertificateException
      • handleTrustStorageUpdate

        public void handleTrustStorageUpdate()
      • getAcceptedIssuers

        public X509Certificate[] getAcceptedIssuers()
        Description copied from interface: X509TrustManager
        Returns the list of certificate issuer authorities which are trusted for authentication of peers.
        Specified by:
        getAcceptedIssuers in interface X509TrustManager
        Returns:
        the list of certificate issuer authorities which are trusted for authentication of peers.


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: 3232 / . Delta: 0.03401 с