Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 78290
Collapse All | Expand All

(-)AuthenticatedSite.java (-1 / +11 lines)
Lines 105-109 Link Here
105
		Platform.addAuthorizationInfo(toUrl(), "", "", authInfo); //$NON-NLS-1$ //$NON-NLS-2$
105
		Platform.addAuthorizationInfo(toUrl(), "", "", authInfo); //$NON-NLS-1$ //$NON-NLS-2$
106
		this.password=password;
106
		this.password=password;
107
	}
107
	}
108
	
108
109
110
	protected void initializeAuthorization() {
111
		Map infos = Platform.getAuthorizationInfo(toUrl(), "", "");
112
		if (infos != null) {
113
			if (username == null && password == null) {
114
				username = (String) infos.get("name");
115
				password = (String) infos.get("password");
116
			}
117
		}
118
	}
109
}
119
}
(-)Site.java (+9 lines)
Lines 98-106 Link Here
98
		Assert.isTrue(location == null);
98
		Assert.isTrue(location == null);
99
		Assert.isNotNull(locationId);
99
		Assert.isNotNull(locationId);
100
		location = locationId;
100
		location = locationId;
101
		
102
		initializeAuthorization();
101
		if (memento != null)
103
		if (memento != null)
102
			init(memento);
104
			init(memento);
103
	}
105
	}
106
107
	/**
108
	 * Reads authorizations for this site.
109
	 * This method is invoked on startup to restore autorizations. 
110
	 */
111
	protected void initializeAuthorization() {
112
	}
104
	
113
	
105
	/**
114
	/**
106
	 * Reads the state for this site from the given memento.
115
	 * Reads the state for this site from the given memento.

Return to bug 78290