public interface

SslError

com.tencent.smtt.export.external.interfaces.SslError

Class Overview

This class represents a set of one or more SSL errors and the associated SSL certificate.

Summary

Public Methods
abstract boolean addError(int error)
Adds the supplied SSL error to the set.
abstract SslCertificate getCertificate()
Gets the SSL certificate associated with this object.
abstract int getPrimaryError()
Gets the most severe SSL error in this object's set of errors.
abstract String getUrl()
Gets the URL associated with this object.
abstract boolean hasError(int error)
Determines whether this object includes the supplied error.

Public Methods

public abstract 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.

public abstract SslCertificate getCertificate ()

Gets the SSL certificate associated with this object.

Returns
  • The SSL certificate, non-null.

public abstract 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.

public abstract String getUrl ()

Gets the URL associated with this object.

Returns
  • The URL, non-null.

public abstract 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.