@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, wrapOut
public TLSCipherSuiteSelector(java.io.OutputStream out, 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(java.lang.String... args)
args
- The command-line arguments provided to this program.public static ResultCode main(java.io.OutputStream out, java.io.OutputStream err, 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.public static java.util.SortedSet<java.lang.String> getSupportedCipherSuites()
TLSCipherSuiteComparator
.public static java.util.SortedSet<java.lang.String> getDefaultCipherSuites()
TLSCipherSuiteComparator
.public static java.util.SortedSet<java.lang.String> getRecommendedCipherSuites()
TLSCipherSuiteComparator
.public static java.lang.String[] getRecommendedCipherSuiteArray()
TLSCipherSuiteComparator
.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.public java.lang.String getToolName()
getToolName
in class CommandLineTool
public java.lang.String getToolDescription()
CommandLineTool.getAdditionalDescriptionParagraphs()
method should be used to
return the text for the subsequent paragraphs.getToolDescription
in class CommandLineTool
public java.lang.String getToolVersion()
getToolVersion
in class CommandLineTool
null
if none is
available.public void addToolArguments(ArgumentParser parser) throws ArgumentException
addToolArguments
in class CommandLineTool
parser
- 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.public ResultCode doToolProcessing()
doToolProcessing
in class CommandLineTool
public static java.util.Set<java.lang.String> selectSupportedCipherSuites(java.util.Collection<java.lang.String> potentialSuiteNames)
potentialSuiteNames
- The collection of cipher suite names to be
filtered.