Code example for HttpAuthHandler

Methods: proceed

0
	public void onReceivedHttpAuthRequest(WebView view,
			HttpAuthHandler handler, String host, String realm)
	{ 
		 
		if (this.username != null && this.password != null) {
			handler.proceed(this.username, this.password);
		} 
	} 
 
	public void setBasicAuthentication(String username, String password)
	{ 
		this.username = username;
		this.password = password;
	} 
 
	@Override 
	public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error)
	{ 
		/* 
		 * in theory this should be checked to make sure it's not null but if there is some failure  
		 * in the association then usage of webViewProxy should trigger a NPE to make sure the issue