Package org.opends.server.tools
Class EncodePassword
- java.lang.Object
-
- com.forgerock.opendj.cli.Tool
-
- org.opends.server.tools.EncodePassword
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public final class EncodePassword extends com.forgerock.opendj.cli.ToolThis 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.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidmain(String[] args)Processes the command-line arguments and performs the requested action.static com.forgerock.opendj.cli.ReturnCodemainEncodePassword(String[] args, ServerContext serverContext, PrintStream out, PrintStream err)Processes the command-line arguments and performs the requested action.com.forgerock.opendj.cli.ReturnCoderun(String... args)Run thisTooltool with the provided arguments.-
Methods inherited from class com.forgerock.opendj.cli.Tool
askPort, close, confirmAction, enableConsoleLoggingIfVerbose, errPrintln, errPrintln, errPrintln, errPrintlnSurroundedByBlankLines, errPrintVerboseMessage, flush, flushLogStream, getErrorStream, getErrStream, getInputStream, getOutputStream, isFullyInteractive, isQuiet, isScriptFriendly, isVerbose, logVerboseMessage, mayPrompt, parseArguments, pressReturnToContinue, print, println, println, println, printlnNoWrap, printlnSurroundedByBlankLines, printNoWrap, readInput, readInput, readInputAllowEmpty, readLineOfInput, readPassword, readValidatedInput, readValidatedInputOrThrow, report
-
-
-
-
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.
-
mainEncodePassword
public static com.forgerock.opendj.cli.ReturnCode mainEncodePassword(String[] args, ServerContext serverContext, PrintStream out, PrintStream err)
Processes the command-line arguments and performs the requested action.- Parameters:
args- The command-line arguments provided to this program.serverContext- The server context, ornullif the tool should initialize the server context itself.out- The output stream to use for standard output, ornullif standard output is not needed.err- The output stream to use for standard error, ornullif standard error is not needed.- Returns:
- An integer value that indicates whether processing was successful.
-
run
public com.forgerock.opendj.cli.ReturnCode run(String... args) throws com.forgerock.opendj.cli.ClientException
Description copied from class:com.forgerock.opendj.cli.ToolRun thisTooltool with the provided arguments. Output and errors will be written on the provided streams.This method can be used to run the tool programmatically.
- Overrides:
runin classcom.forgerock.opendj.cli.Tool- Parameters:
args- Arguments set to pass to the tool.- Returns:
- The tool
ReturnCode. - Throws:
com.forgerock.opendj.cli.ClientException- If an error occurs while running the tool.
-
-