Examples of LdapConfigurationXpp3Reader


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

    }

    @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.LdapConfigurationXpp3Reader

  protected CLdapConfiguration getConfigFromFile()
      throws IOException, XmlPullParserException
  {
    try (FileReader fr = new FileReader(new File(getConfHomeDir(), "ldap.xml"))) {
      LdapConfigurationXpp3Reader reader = new LdapConfigurationXpp3Reader();
      return reader.read(fr);
    }
  }
View Full Code Here

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

  }

  private String clearPasswords(String ldapConfigAsString)
      throws Exception
  {
    LdapConfigurationXpp3Reader reader = new LdapConfigurationXpp3Reader();
    CLdapConfiguration ldapConfiguration = reader.read(new StringReader(ldapConfigAsString));
    // loop through and set the passwords to clear text
    for (CLdapServerConfiguration ldapServer : ldapConfiguration.getServers()) {
      this.convertPasswordsToClearText(ldapServer);
    }
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.