Class Launcher
java.lang.Object
com.unboundid.ldap.sdk.unboundidds.Launcher
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
"
The tool names are case-insensitive. Supported tool names include:
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.unboundidds package 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. - compare-ldap-schemas -- Launch the
CompareLDAPSchemastool. - 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.
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<Class<? extends CommandLineTool>> 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(Class<?> toolClass, OutputStream outStream, OutputStream errStream) Retrieves an instance of the specified type of command-line tool with the given output and error streams.static ResultCodemain(OutputStream outStream, OutputStream errStream, String... args) Parses the command-line arguments and performs any appropriate processing for this program.static voidParses the command-line arguments and performs any appropriate processing for this program.
-
Method Details
-
main
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 OutputStream outStream, @Nullable OutputStream errStream, @NotNull 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
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 Class<?> toolClass, @Nullable OutputStream outStream, @Nullable 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.
-