Code example for HttpAuthHandler

Methods: proceed, useHttpAuthUsernamePassword

0
		// ���̓I�ɂ́u:80�v���NjL�����Ă��܂��܂��B 
 
		String userName = null;
		String userPass = null;
 
		if (handler.useHttpAuthUsernamePassword() && view != null) {
			String[] haup = view.getHttpAuthUsernamePassword(host, realm);
			if (haup != null && haup.length == 2) {
				userName = haup[0];
				userPass = haup[1];
			} 
		} 
 
		if (userName != null && userPass != null) {
			handler.proceed(userName, userPass);
		} 
		else { 
			showHttpAuthDialog(handler, host, realm, null, null, null);
		} 
	}