Code example for SslError

Methods: toString

0
    } 
 
    @SuppressLint("NewApi") 
	public void onReceivedSslError(WebView view, SslErrorHandler handler,
            SslError error) {
        MyLog.e(TAG, " received ss: error:" + error.toString());
        handler.proceed();
    } 
 
    @Override 
    public void onReceivedHttpAuthRequest(WebView webView,
            HttpAuthHandler handler, String host, String realm) {
    	MyLog.d(TAG, "onReceivedHttpAuthRequest: host => " + host + ", realm => "
                + realm);
        String[] up = webView.getHttpAuthUsernamePassword(host, realm);
 
        if (up != null && up.length == 2 && up[0] != null && up[1] != null) {
            handler.proceed(up[0], up[1]);
        } else { 
            super.onReceivedHttpAuthRequest(webView, handler, host, realm);
        }