/** * Constructor. */ @SuppressWarnings("deprecation") public SystemCredentialsProvider() { try { XmlFile xml = getConfigFile(); if (xml.exists()) { xml.unmarshal(this); } } catch (IOException e) { LOGGER.log(Level.SEVERE, "Failed to read the existing credentials", e); } domainCredentialsMap = DomainCredentials.migrateListToMap(domainCredentialsMap, credentials); credentials = null; }
/** * Constructor. */ @SuppressWarnings("deprecation") public SystemCredentialsProvider() { try { XmlFile xml = getConfigFile(); if (xml.exists()) { xml.unmarshal(this); } } catch (IOException e) { LOGGER.log(Level.SEVERE, "Failed to read the existing credentials", e); } domainCredentialsMap = DomainCredentials.migrateListToMap(domainCredentialsMap, credentials); credentials = null; }
/** * {@inheritDoc} */ public void save() throws IOException { checkPermission(Jenkins.ADMINISTER); if (BulkChange.contains(this)) { return; } XmlFile configFile = getConfigFile(); configFile.write(this); SaveableListener.fireOnChange(this, configFile); }
/** * {@inheritDoc} */ public void save() throws IOException { checkPermission(Jenkins.ADMINISTER); if (BulkChange.contains(this)) { return; } XmlFile configFile = getConfigFile(); configFile.write(this); SaveableListener.fireOnChange(this, configFile); }