Examples of LdapConfigurationXpp3Writer


Examples of com.sonatype.security.ldap.realms.persist.model.io.xpp3.LdapConfigurationXpp3Writer

      }
      newServerConfig.setUserAndGroupConfig(convertUserAndGroupInfo(ossConfiguration.getUserAndGroupConfig()));
      final CLdapConfiguration newConfiguration = new CLdapConfiguration();
      newConfiguration.setVersion(toVersion());
      newConfiguration.addServer(newServerConfig);
      new LdapConfigurationXpp3Writer().write(writer, newConfiguration);
    }
View Full Code Here

Examples of com.sonatype.security.ldap.realms.persist.model.io.xpp3.LdapConfigurationXpp3Writer

    @Override
    public void doUpgrade(final Reader reader, final Writer writer) throws IOException, XmlPullParserException {
      // no model structure change, merely the version
      final CLdapConfiguration configuration = new LdapConfigurationXpp3Reader().read(reader);
      configuration.setVersion(toVersion());
      new LdapConfigurationXpp3Writer().write(writer, configuration);
    }
View Full Code Here

Examples of com.sonatype.security.ldap.realms.persist.model.io.xpp3.LdapConfigurationXpp3Writer

    // loop through and set the passwords to clear text
    for (CLdapServerConfiguration ldapServer : ldapConfiguration.getServers()) {
      this.convertPasswordsToClearText(ldapServer);
    }

    LdapConfigurationXpp3Writer writer = new LdapConfigurationXpp3Writer();
    StringWriter stringWriter = new StringWriter();
    writer.write(stringWriter, ldapConfiguration);

    return stringWriter.toString();
  }
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.