Code example for SslErrorHandler

Methods: proceed

0
    @Override 
    public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) {
         
        if(RhoConf.getBool("no_ssl_verify_peer")) { 
            Logger.D(TAG, "Skip SSL error.");
            handler.proceed();
        } else { 
            StringBuilder msg = new StringBuilder();
            msg.append("SSL error - ");
            switch(error.getPrimaryError()) {
            case SslError.SSL_NOTYETVALID:
                msg.append("The certificate is not yet valid: ");
                break; 
            case SslError.SSL_EXPIRED:
                msg.append("The certificate has expired: ");
                break; 
            case SslError.SSL_IDMISMATCH:
                msg.append("Hostname mismatch: ");
                break; 
            case SslError.SSL_UNTRUSTED:
Connect your IDE to all the code out there  Get Codota for Java