Map map = Platform.getAuthorizationInfo(FAKE_URL, getLocation(), AUTH_SCHEME); if (map != null) { String username = (String) map.get(INFO_USERNAME); if (username != null) setUsername(username); String password = (String) map.get(INFO_PASSWORD); if (password != null) { setPassword(password); }
Map map = Platform.getAuthorizationInfo(FAKE_URL, getLocation(), AUTH_SCHEME); if (map != null) { String username = (String) map.get(INFO_USERNAME); if (username != null) setUsername(username); String password = (String) map.get(INFO_PASSWORD); if (password != null) { setPassword(password);
	private void retrieveUsernamePassword() {		Map map = Platform.getAuthorizationInfo(FAKE_URL, getLocation(), AUTH_SCHEME);		if (map != null) {			String username = (String) map.get(INFO_USERNAME);			if (username != null)				setUsername(username);			String password = (String) map.get(INFO_PASSWORD);			if (password != null) {				setPassword(password);			}		}	}