EncodePassword.java revision d20053afa42700e3ec7a6f6fb474622e8680f4cc
53e8ebc8f0f7315d4af29401a856d45f10ee2bd8Tinderbox User * CDDL HEADER START
ec5347e2c775f027573ce5648b910361aa926c01Automatic Updater * The contents of this file are subject to the terms of the
91ddbb6e4f1b4b1cdcf26487b51761036df865b7Mark Andrews * Common Development and Distribution License, Version 1.0 only
91ddbb6e4f1b4b1cdcf26487b51761036df865b7Mark Andrews * (the "License"). You may not use this file except in compliance
91ddbb6e4f1b4b1cdcf26487b51761036df865b7Mark Andrews * with the License.
91ddbb6e4f1b4b1cdcf26487b51761036df865b7Mark Andrews * You can obtain a copy of the license at
91ddbb6e4f1b4b1cdcf26487b51761036df865b7Mark Andrews * trunk/opends/resource/legal-notices/OpenDS.LICENSE
91ddbb6e4f1b4b1cdcf26487b51761036df865b7Mark Andrews * or https://OpenDS.dev.java.net/OpenDS.LICENSE.
91ddbb6e4f1b4b1cdcf26487b51761036df865b7Mark Andrews * See the License for the specific language governing permissions
91ddbb6e4f1b4b1cdcf26487b51761036df865b7Mark Andrews * and limitations under the License.
91ddbb6e4f1b4b1cdcf26487b51761036df865b7Mark Andrews * When distributing Covered Code, include this CDDL HEADER in each
91ddbb6e4f1b4b1cdcf26487b51761036df865b7Mark Andrews * file and include the License file at
ea94d370123a5892f6c47a97f21d1b28d44bb168Tinderbox User * trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
91ddbb6e4f1b4b1cdcf26487b51761036df865b7Mark Andrews * add the following below this CDDL HEADER, with the fields enclosed
5df6758f252feb143c499a34b781ea9cc72794d0Mark Andrews * by brackets "[]" replaced with your own identifying information:
5df6758f252feb143c499a34b781ea9cc72794d0Mark Andrews * Portions Copyright [yyyy] [name of copyright owner]
5df6758f252feb143c499a34b781ea9cc72794d0Mark Andrews * CDDL HEADER END
5df6758f252feb143c499a34b781ea9cc72794d0Mark Andrews * Portions Copyright 2006-2007 Sun Microsystems, Inc.
5df6758f252feb143c499a34b781ea9cc72794d0Mark Andrewsimport org.opends.server.api.PasswordStorageScheme;
5df6758f252feb143c499a34b781ea9cc72794d0Mark Andrewsimport org.opends.server.config.ConfigException;
8f1e278931689460a49f0e9be610f2b2cc32c42dEvan Huntimport org.opends.server.core.PasswordStorageSchemeConfigManager;
8f1e278931689460a49f0e9be610f2b2cc32c42dEvan Huntimport org.opends.server.extensions.ConfigFileHandler;
8f1e278931689460a49f0e9be610f2b2cc32c42dEvan Huntimport org.opends.server.protocols.asn1.ASN1OctetString;
8f1e278931689460a49f0e9be610f2b2cc32c42dEvan Huntimport org.opends.server.protocols.ldap.LDAPResultCode;
8f1e278931689460a49f0e9be610f2b2cc32c42dEvan Huntimport org.opends.server.schema.AuthPasswordSyntax;
8f1e278931689460a49f0e9be610f2b2cc32c42dEvan Huntimport org.opends.server.schema.UserPasswordSyntax;
5df6758f252feb143c499a34b781ea9cc72794d0Mark Andrewsimport org.opends.server.types.DirectoryException;
8f1e278931689460a49f0e9be610f2b2cc32c42dEvan Huntimport org.opends.server.types.InitializationException;
5df6758f252feb143c499a34b781ea9cc72794d0Mark Andrewsimport org.opends.server.util.args.ArgumentException;
5df6758f252feb143c499a34b781ea9cc72794d0Mark Andrewsimport org.opends.server.util.args.ArgumentParser;
8f1e278931689460a49f0e9be610f2b2cc32c42dEvan Huntimport org.opends.server.util.args.BooleanArgument;
8f1e278931689460a49f0e9be610f2b2cc32c42dEvan Huntimport org.opends.server.util.args.FileBasedArgument;
8f1e278931689460a49f0e9be610f2b2cc32c42dEvan Huntimport static org.opends.server.config.ConfigConstants.*;
8f1e278931689460a49f0e9be610f2b2cc32c42dEvan Huntimport static org.opends.server.messages.MessageHandler.*;
5df6758f252feb143c499a34b781ea9cc72794d0Mark Andrewsimport static org.opends.server.messages.ToolMessages.*;
5df6758f252feb143c499a34b781ea9cc72794d0Mark Andrewsimport static org.opends.server.util.ServerConstants.*;
5df6758f252feb143c499a34b781ea9cc72794d0Mark Andrewsimport static org.opends.server.util.StaticUtils.*;
public class EncodePassword
toolDescription, false);
null,
boolean compareMode;
compareMode = true;
compareMode = false;
if (initializeServer)
catch (Exception e)
catch (Exception e)
catch (Exception e)
catch (Exception e)
catch (Exception e)
if (compareMode)
catch (Exception e)
catch (Exception e)
catch (Exception e)
catch (Exception e)