Examples of storeConfiguration()


Examples of org.sonatype.nexus.configuration.source.ApplicationConfigurationSource.storeConfiguration()

    // now we need to make the file valid....
    config.getRemoteProxySettings().getHttpProxySettings().setProxyPort(1234);

    // save it
    source.storeConfiguration();

    XStream xs = new XStream();
    xs.processAnnotations(new Class[] { Xpp3Dom.class });
    Assert.assertTrue("Configuration is corroupt, passwords are encrypted (in memory). ",
        xs.toXML(config).contains(password));
View Full Code Here

Examples of org.sonatype.security.configuration.source.SecurityConfigurationSource.storeConfiguration()

    SecurityConfigurationSource source = this.lookup(SecurityConfigurationSource.class, "file");
    SecurityConfiguration config = source.loadConfiguration();

    config.setRealms(new ArrayList<String>(realmMap.keySet()));
    source.storeConfiguration();

    lookup(SecuritySystem.class).start();
  }

  @Override
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.