Class CefriumSslError

java.lang.Object
com.cefrium.CefriumSslError

@CefriumExperimental public final class CefriumSslError extends Object
A certificate that failed validation, as CefriumNavigationClient.onSslError(CefriumBrowser, CefriumSslError, CefriumBrowser.SslErrorCallback) sees it. Like android.net.http.SslError, with the whole chain.
  • Method Details

    • getErrorCode

      public int getErrorCode()
      Chromium's net error code for the failure, negative: -202 authority invalid, -201 date invalid, -200 name mismatch, ... Stable across engine versions (net_error_list.h).
    • getUrl

      public String getUrl()
      The URL whose certificate failed.
    • getCertificate

      public X509Certificate getCertificate()
      The server's certificate, or null when the engine gave none.
    • getCertificateChain

      public List<X509Certificate> getCertificateChain()
      The chain the server sent, its certificate first. Unmodifiable.