_serverConfiguration = success.getExtraParameters();
setExpirationDate(success.getLicenceExpirationDate());
return true;
} else if (auth instanceof AuthFailed) {
LOGGER.debug("AuthFailed:"+auth); //$NON-NLS-1$
AuthFailed failed = (AuthFailed) auth;
_serverVersion = (String) failed.getExtraParameter(Authentification.SERVER_VERSION);
resetLoginInfos();
switch (failed.getReasonCode()) {
case AuthFailed.BAD_AUTHENTIFICATION_INFO:
throw new NotSignedException(Messages.getString("services.error.badlogin"), failed.getReasonCode()); //$NON-NLS-1$
case AuthFailed.LICENCE_EXPIRED:
throw new NotSignedException(Messages.getString("services.error.licenseexpired"), failed.getReasonCode()); //$NON-NLS-1$
case AuthFailed.SERVER_UNDER_MAINTENANCE:
throw new NotSignedException(Messages.getString("services.error.servernotreachable"), failed.getReasonCode()); //$NON-NLS-1$
case AuthFailed.ACCOUNT_BLOCKED:
throw new NotSignedException(Messages.getString("services.error.account.suspended")+"\n"+failed.getReasonMessage(), failed.getReasonCode()); //$NON-NLS-1$ //$NON-NLS-2$
default:
throw new NotSignedException(Messages.getString("services.error.unknow")+failed.getReasonMessage(), failed.getReasonCode()); //$NON-NLS-1$
}
}
}
return false;
}