IT. Expert System.

Android Reference

SslError


android.net.http

Class SslError



  • public class SslError
    extends Object
    This class represents a set of one or more SSL errors and the associated SSL certificate.
    • Field Detail

      • SSL_NOTYETVALID

        public static final int SSL_NOTYETVALID
        The certificate is not yet valid
        See Also:
        Constant Field Values
      • SSL_EXPIRED

        public static final int SSL_EXPIRED
        The certificate has expired
        See Also:
        Constant Field Values
      • SSL_UNTRUSTED

        public static final int SSL_UNTRUSTED
        The certificate authority is not trusted
        See Also:
        Constant Field Values
      • SSL_DATE_INVALID

        public static final int SSL_DATE_INVALID
        The date of the certificate is invalid
        See Also:
        Constant Field Values
      • SSL_INVALID

        public static final int SSL_INVALID
        A generic error occurred
        See Also:
        Constant Field Values
      • SSL_MAX_ERROR

        @Deprecated
        public static final int SSL_MAX_ERROR
        Deprecated. This constant is not necessary for using the SslError API and can change from release to release.
        The number of different SSL errors.
        See Also:
        Constant Field Values
    • Constructor Detail

      • SslError

        @Deprecated
        public SslError(int error,
                           SslCertificate certificate)
        Creates a new SslError object using the supplied error and certificate. The URL will be set to the empty string.
        Parameters:
        error - The SSL error
        certificate - The associated SSL certificate
      • SslError

        @Deprecated
        public SslError(int error,
                           X509Certificate certificate)
        Creates a new SslError object using the supplied error and certificate. The URL will be set to the empty string.
        Parameters:
        error - The SSL error
        certificate - The associated SSL certificate
      • SslError

        public SslError(int error,
                SslCertificate certificate,
                String url)
        Creates a new SslError object using the supplied error, certificate and URL.
        Parameters:
        error - The SSL error
        certificate - The associated SSL certificate
        url - The associated URL
      • SslError

        public SslError(int error,
                X509Certificate certificate,
                String url)
        Creates a new SslError object using the supplied error, certificate and URL.
        Parameters:
        error - The SSL error
        certificate - The associated SSL certificate
        url - The associated URL
    • Method Detail

      • SslErrorFromChromiumErrorCode

        public static SslError SslErrorFromChromiumErrorCode(int error,
                                             SslCertificate cert,
                                             String url)
        Creates an SslError object from a chromium error code.
        Parameters:
        error - The chromium error code
        certificate - The associated SSL certificate
        url - The associated URL.
      • getCertificate

        public SslCertificate getCertificate()
        Gets the SSL certificate associated with this object.
        Returns:
        The SSL certificate, non-null.
      • getUrl

        public String getUrl()
        Gets the URL associated with this object.
        Returns:
        The URL, non-null.
      • addError

        public boolean addError(int error)
        Adds the supplied SSL error to the set.
        Parameters:
        error - The SSL error to add
        Returns:
        True if the error being added is a known SSL error, otherwise false.
      • hasError

        public boolean hasError(int error)
        Determines whether this object includes the supplied error.
        Parameters:
        error - The SSL error to check for
        Returns:
        True if this object includes the error, otherwise false.
      • getPrimaryError

        public int getPrimaryError()
        Gets the most severe SSL error in this object's set of errors. Returns -1 if the set is empty.
        Returns:
        The most severe SSL error, or -1 if the set is empty.
      • toString

        public String toString()
        Returns a string representation of this object.
        Overrides:
        toString in class Object
        Returns:
        A String representation of this object.


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: 597 / 158856511. Delta: 0.03755 с