Class EncodePassword


  • public class EncodePassword
    extends Object
    This program provides a utility that may be used to interact with the password storage schemes defined in the Directory Server. In particular, it can encode a clear-text password using a specified scheme, and it can also determine whether a given encoded password is the encoded representation of a given clear-text password. Alternately, it can be used to obtain a list of the available password storage scheme names.
    • Constructor Detail

      • EncodePassword

        public EncodePassword()
    • Method Detail

      • main

        public static void main​(String[] args)
        Processes the command-line arguments and performs the requested action.
        Parameters:
        args - The command-line arguments provided to this program.
      • encodePassword

        public static int encodePassword​(String[] args)
        Processes the command-line arguments and performs the requested action.
        Parameters:
        args - The command-line arguments provided to this program.
        Returns:
        An integer value that indicates whether processing was successful.
      • encodePassword

        public static int encodePassword​(String[] args,
                                         boolean initializeServer,
                                         OutputStream outStream,
                                         OutputStream errStream)
        Processes the command-line arguments and performs the requested action.
        Parameters:
        args - The command-line arguments provided to this program.
        initializeServer - Indicates whether to initialize the server.
        outStream - The output stream to use for standard output, or null if standard output is not needed.
        errStream - The output stream to use for standard error, or null if standard error is not needed.
        Returns:
        An integer value that indicates whether processing was successful.