Interface CertificateRequestCallback

  • All Implemented Interfaces:

    
    public interface CertificateRequestCallback
    
                        

    Represents the certificate request callback. It's used in the WebView to handle the certificate challenges, for example:

         val callback = object : CertificateRequestCallback {
            override fun proceed(
                privateKey: PrivateKey?,
                chain: Array<X509Certificate?>?
            ) {
                request.proceed(privateKey, chain)
            }
    
            override fun ignore() {
                request.ignore()
            }
    
        }
        val certRequest = CertificateRequest(callback, null, null, "host", 8080)
        SystemCertificateProvider().onCertificateRequest(certRequest)
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Unit proceed(PrivateKey privateKey, Array<X509Certificate> chain)
      abstract Unit ignore()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • proceed

         abstract Unit proceed(PrivateKey privateKey, Array<X509Certificate> chain)
      • ignore

         abstract Unit ignore()