@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class TLSCipherSuiteSelector extends CommandLineTool
| Constructor and Description |
|---|
TLSCipherSuiteSelector(java.io.OutputStream out,
java.io.OutputStream err)
Creates a new instance of this TLS cipher suite selector that will use the
provided output streams.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addToolArguments(ArgumentParser parser)
Adds the command-line arguments supported for use with this tool to the
provided argument parser.
|
ResultCode |
doToolProcessing()
Performs the core set of processing for this tool.
|
static java.util.SortedSet<java.lang.String> |
getDefaultCipherSuites()
Retrieves the set of TLS cipher suites enabled by default in the JVM.
|
static java.util.SortedMap<java.lang.String,java.util.List<java.lang.String>> |
getNonRecommendedCipherSuites()
Retrieves a map containing the TLS cipher suites that are supported by the
JVM but are not recommended for use.
|
static java.lang.String[] |
getRecommendedCipherSuiteArray()
Retrieves an array containing the recommended set of TLS cipher suites as
selected by this class.
|
static java.util.SortedSet<java.lang.String> |
getRecommendedCipherSuites()
Retrieves the recommended set of TLS cipher suites as selected by this
class.
|
static java.util.SortedSet<java.lang.String> |
getSupportedCipherSuites()
Retrieves the set of all TLS cipher suites supported by the JVM.
|
java.lang.String |
getToolDescription()
Retrieves a human-readable description for this tool.
|
java.lang.String |
getToolName()
Retrieves the name of this tool.
|
java.lang.String |
getToolVersion()
Retrieves a version string for this tool, if available.
|
static ResultCode |
main(java.io.OutputStream out,
java.io.OutputStream err,
java.lang.String... args)
Invokes this command-line program with the provided set of arguments.
|
static void |
main(java.lang.String... args)
Invokes this command-line program with the provided set of arguments.
|
static java.util.Set<java.lang.String> |
selectSupportedCipherSuites(java.util.Collection<java.lang.String> potentialSuiteNames)
Filters the provided collection of potential cipher suite names to retrieve
a set of the suites that are supported by the JVM.
|
addEnableSSLDebuggingArgument, createArgumentParser, defaultsToInteractiveMode, doExtendedArgumentValidation, doShutdownHookProcessing, err, getAdditionalDescriptionParagraphs, getErr, getExampleUsages, getMaxTrailingArguments, getMinTrailingArguments, getOriginalErr, getOriginalOut, getOut, getPasswordFileReader, getToolCompletionMessage, getTrailingArgumentsPlaceholder, logToolInvocationByDefault, out, registerShutdownHook, requestToolArgumentsInteractively, runTool, supportsInteractiveMode, supportsOutputFile, supportsPropertiesFile, wrapErr, wrapOutpublic TLSCipherSuiteSelector(@Nullable java.io.OutputStream out, @Nullable java.io.OutputStream err)
out - The output stream to use for standard output. It may be
null if standard output should be suppressed.err - The output stream to use for standard error. It may be
null if standard error should be suppressed.public static void main(@NotNull java.lang.String... args)
args - The command-line arguments provided to this program.@NotNull public static ResultCode main(@Nullable java.io.OutputStream out, @Nullable java.io.OutputStream err, @NotNull java.lang.String... args)
out - The output stream to use for standard output. It may be
null if standard output should be suppressed.err - The output stream to use for standard error. It may be
null if standard error should be suppressed.args - The command-line arguments provided to this program.@NotNull public static java.util.SortedSet<java.lang.String> getSupportedCipherSuites()
TLSCipherSuiteComparator.@NotNull public static java.util.SortedSet<java.lang.String> getDefaultCipherSuites()
TLSCipherSuiteComparator.@NotNull public static java.util.SortedSet<java.lang.String> getRecommendedCipherSuites()
TLSCipherSuiteComparator.@NotNull public static java.lang.String[] getRecommendedCipherSuiteArray()
TLSCipherSuiteComparator.@NotNull public static java.util.SortedMap<java.lang.String,java.util.List<java.lang.String>> getNonRecommendedCipherSuites()
TLSCipherSuiteComparator.
Each TLS cipher suite name will be mapped to a list of the reasons it is
not recommended for use.@NotNull public java.lang.String getToolName()
getToolName in class CommandLineTool@NotNull public java.lang.String getToolDescription()
CommandLineTool.getAdditionalDescriptionParagraphs() method should be used to
return the text for the subsequent paragraphs.getToolDescription in class CommandLineTool@NotNull public java.lang.String getToolVersion()
getToolVersion in class CommandLineToolnull if none is
available.public void addToolArguments(@NotNull ArgumentParser parser) throws ArgumentException
addToolArguments in class CommandLineToolparser - The argument parser to which the arguments are to be added.ArgumentException - If a problem occurs while adding any of the
tool-specific arguments to the provided
argument parser.@NotNull public ResultCode doToolProcessing()
doToolProcessing in class CommandLineTool@NotNull public static java.util.Set<java.lang.String> selectSupportedCipherSuites(@Nullable java.util.Collection<java.lang.String> potentialSuiteNames)
potentialSuiteNames - The collection of cipher suite names to be
filtered.