Community
Participate
Working Groups
Platform.addAuthorizationInfo(toUrl(), "", "", authInfo); //$NON-NLS-1$ //$NON-NLS-2$
this.password=password;
}
protected void initializeAuthorization() {
Map infos = Platform.getAuthorizationInfo(toUrl(), "", "");
if (infos != null) {
if (username == null && password == null) {
username = (String) infos.get("name");
password = (String) infos.get("password");
Assert.isTrue(location == null);
Assert.isNotNull(locationId);
location = locationId;
initializeAuthorization();
if (memento != null)
init(memento);
/**
* Reads authorizations for this site.
* This method is invoked on startup to restore autorizations.
*/
* Reads the state for this site from the given memento.