Code example for SslError

Methods: toString

0
         */ 
        @Override 
        public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) { 
            Log.d(TAG, "[onReceivedSslError]"); 
 
            String message = error.toString(); 
            Log.e(TAG, message); 
            handler.proceed(); 
        } 
    }; 
 
    private void logAndToast(String message) {
        Log.d(TAG, message);
        Toast.makeText(this, message, Toast.LENGTH_LONG).show();
    } 
 
    /** 
     * This parses the Capture access token out of the sentinel URL 
     * @param url 
     *  The sentinel URL to parse the access token from. 
     */