Class Launcher
- java.lang.Object
-
- com.unboundid.ldap.sdk.unboundidds.Launcher
-
@ThreadSafety(level=COMPLETELY_THREADSAFE) public final class Launcher extends java.lang.Object
This class provides an entry point that may be used to launch other tools provided as part of the LDAP SDK. This is primarily a convenience for someone who just has the jar file and none of the scripts, since you can run "java -jar unboundid-ldapsdk.jar {tool-name} {tool-args}" in order to invoke any of the example tools. Running just "java -jar unboundid-ldapsdk.jar" will display version information about the LDAP SDK.
NOTE: This class, and other classes within the
com.unboundid.ldap.sdk.unboundiddspackage structure, are only supported for use against Ping Identity, UnboundID, and Nokia/Alcatel-Lucent 8661 server products. These classes provide support for proprietary functionality or for external specifications that are not considered stable or mature enough to be guaranteed to work in an interoperable way with other types of LDAP servers.
The tool names are case-insensitive. Supported tool names include:- authrate -- Launch the
AuthRatetool. - base64 -- Launch the
Base64Tooltool. - collect-support-data -- Launch the
CollectSupportDatatool. - deliver-one-time-password -- Launch the
DeliverOneTimePasswordtool. - deliver-password-reset-token -- Launch the
DeliverPasswordResetTokentool. - dump-dns -- Launch the
DumpDNstool. - generate-schema-from-source -- Launch the
GenerateSchemaFromSourcetool. - generate-source-from-schema -- Launch the
GenerateSourceFromSchematool. - generate-totp-shared-secret -- Launch the
GenerateTOTPSharedSecrettool. - identify-references-to-missing-entries -- Launch the
IdentifyReferencesToMissingEntriestool. - identify-unique-attribute-conflicts -- Launch the
IdentifyUniqueAttributeConflictstool. - indent-ldap-filter -- Launch the
IndentLDAPFiltertool. - in-memory-directory-server -- Launch the
InMemoryDirectoryServerTooltool. - ldapcompare -- Launch the
LDAPComparetool. - ldapdelete -- Launch the
LDAPDeletetool. - ldapmodify -- Launch the
LDAPModifytool. - ldappasswordmodify -- Launch the
LDAPPasswordModifytool. - ldapsearch -- Launch the
LDAPSearchtool. - ldap-debugger -- Launch the
LDAPDebuggertool. - ldap-diff -- Launch the
LDAPDifftool. - ldap-result-code -- Launch the
LDAPResultCodetool. - ldifmodify -- Launch the
LDIFModifytool. - ldifsearch -- Launch the
LDIFSearchtool. - ldif-diff -- Launch the
LDIFDifftool. - manage-account -- Launch the
ManageAccounttool. - manage-certificates -- Launch the
ManageCertificatestool. - modrate -- Launch the
ModRatetool. - move-subtree -- Launch the
MoveSubtreetool. - oid-lookup -- Launch the
OIDLookuptool. - parallel-update -- Launch the
ParallelUpdatetool. - register-yubikey-otp-device -- Launch the
RegisterYubiKeyOTPDevicetool. - searchrate -- Launch the
SearchRatetool. - search-and-mod-rate -- Launch the
SearchAndModRatetool. - split-ldif -- Launch the
SplitLDIFtool. - subtree-accessibility -- Launch the
SubtreeAccessibilitytool. - summarize-access-log -- Launch the
SummarizeAccessLogtool. - test-ldap-sdk-performance -- Launch the
TLSCipherSuiteSelectortool. - tls-cipher-suite-selector -- Launch the
TLSCipherSuiteSelectortool. - transform-ldif -- Launch the
TransformLDIFtool. - validate-ldap-schema -- Launch the
ValidateLDAPSchematool. - validate-ldif -- Launch the
ValidateLDIFtool. - version -- Display version information for the LDAP SDK.
- authrate -- Launch the
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.List<java.lang.Class<? extends CommandLineTool>>getToolClasses()Retrieves a list of all of the classes that provide the implementations for all of the command-line tools included with the LDAP SDK.static CommandLineToolgetToolInstance(java.lang.Class<?> toolClass, java.io.OutputStream outStream, java.io.OutputStream errStream)Retrieves an instance of the specified type of command-line tool with the given output and error streams.static ResultCodemain(java.io.OutputStream outStream, java.io.OutputStream errStream, java.lang.String... args)Parses the command-line arguments and performs any appropriate processing for this program.static voidmain(java.lang.String... args)Parses the command-line arguments and performs any appropriate processing for this program.
-
-
-
Method Detail
-
main
public static void main(@NotNull java.lang.String... args)
Parses the command-line arguments and performs any appropriate processing for this program.- Parameters:
args- The command-line arguments provided to this program.
-
main
@NotNull public static ResultCode main(@Nullable java.io.OutputStream outStream, @Nullable java.io.OutputStream errStream, @NotNull java.lang.String... args)
Parses the command-line arguments and performs any appropriate processing for this program.- Parameters:
outStream- The output stream to which standard out should be written. It may benullif output should be suppressed.errStream- The output stream to which standard error should be written. It may benullif error messages should be suppressed.args- The command-line arguments provided to this program.- Returns:
- A result code with information about the status of processing.
-
getToolClasses
@NotNull public static java.util.List<java.lang.Class<? extends CommandLineTool>> getToolClasses()
Retrieves a list of all of the classes that provide the implementations for all of the command-line tools included with the LDAP SDK.- Returns:
- A list of all of the classes that provide the implementations for all of the command-line tools included with the LDAP SDK.
-
getToolInstance
@NotNull public static CommandLineTool getToolInstance(@NotNull java.lang.Class<?> toolClass, @Nullable java.io.OutputStream outStream, @Nullable java.io.OutputStream errStream) throws LDAPException
Retrieves an instance of the specified type of command-line tool with the given output and error streams. The tool class must provide a two-argument constructor in which the first argument is a possibly-nullOutputStreamto use for standard output, and the second argument is a possibly-nullOutputStreamto use for standard error.- Parameters:
toolClass- The class that provides the implementation for the desired command-line tool.outStream- The output stream to which standard out should be written. It may benullif output should be suppressed.errStream- The output stream to which standard error should be written. It may benullif error messages should be suppressed.- Returns:
- An instance of the specified command-line tool.
- Throws:
LDAPException- If a problem occurs while attempting to create an instance of the requested tool.
-
-