< prev index next >

src/java.base/share/classes/sun/security/tools/keytool/Resources.java

Print this page
rev 48243 : 8189102: All tools should support -?, -h and --help
Reviewed-by: kvn, jjg, weijun, alanb, rfield, ksrini


  28 /**
  29  * <p> This class represents the <code>ResourceBundle</code>
  30  * for the keytool.
  31  *
  32  */
  33 public class Resources extends java.util.ListResourceBundle {
  34 
  35     private static final Object[][] contents = {
  36         {"NEWLINE", "\n"},
  37         {"STAR",
  38                 "*******************************************"},
  39         {"STARNN",
  40                 "*******************************************\n\n"},
  41 
  42         // keytool: Help part
  43         {".OPTION.", " [OPTION]..."},
  44         {"Options.", "Options:"},
  45         {"option.1.set.twice", "The %s option is specified multiple times. All except the last one will be ignored."},
  46         {"multiple.commands.1.2", "Only one command is allowed: both %1$s and %2$s were specified."},
  47         {"Use.keytool.help.for.all.available.commands",
  48                  "Use \"keytool -help\" for all available commands"},
  49         {"Key.and.Certificate.Management.Tool",
  50                  "Key and Certificate Management Tool"},
  51         {"Commands.", "Commands:"},
  52         {"Use.keytool.command.name.help.for.usage.of.command.name",
  53                 "Use \"keytool -command_name -help\" for usage of command_name.\n" +
  54                 "Use the -conf <url> option to specify a pre-configured options file."},
  55         // keytool: help: commands
  56         {"Generates.a.certificate.request",
  57                 "Generates a certificate request"}, //-certreq
  58         {"Changes.an.entry.s.alias",
  59                 "Changes an entry's alias"}, //-changealias
  60         {"Deletes.an.entry",
  61                 "Deletes an entry"}, //-delete
  62         {"Exports.certificate",
  63                 "Exports certificate"}, //-exportcert
  64         {"Generates.a.key.pair",
  65                 "Generates a key pair"}, //-genkeypair
  66         {"Generates.a.secret.key",
  67                 "Generates a secret key"}, //-genseckey
  68         {"Generates.certificate.from.a.certificate.request",
  69                 "Generates certificate from a certificate request"}, //-gencert
  70         {"Generates.CRL", "Generates CRL"}, //-gencrl
  71         {"Generated.keyAlgName.secret.key",
  72                 "Generated {0} secret key"}, //-genseckey
  73         {"Generated.keysize.bit.keyAlgName.secret.key",




  28 /**
  29  * <p> This class represents the <code>ResourceBundle</code>
  30  * for the keytool.
  31  *
  32  */
  33 public class Resources extends java.util.ListResourceBundle {
  34 
  35     private static final Object[][] contents = {
  36         {"NEWLINE", "\n"},
  37         {"STAR",
  38                 "*******************************************"},
  39         {"STARNN",
  40                 "*******************************************\n\n"},
  41 
  42         // keytool: Help part
  43         {".OPTION.", " [OPTION]..."},
  44         {"Options.", "Options:"},
  45         {"option.1.set.twice", "The %s option is specified multiple times. All except the last one will be ignored."},
  46         {"multiple.commands.1.2", "Only one command is allowed: both %1$s and %2$s were specified."},
  47         {"Use.keytool.help.for.all.available.commands",
  48                  "Use \"keytool -?, -h, or --help\" for this help message"},
  49         {"Key.and.Certificate.Management.Tool",
  50                  "Key and Certificate Management Tool"},
  51         {"Commands.", "Commands:"},
  52         {"Use.keytool.command.name.help.for.usage.of.command.name",
  53                 "Use \"keytool -command_name --help\" for usage of command_name.\n" +
  54                 "Use the -conf <url> option to specify a pre-configured options file."},
  55         // keytool: help: commands
  56         {"Generates.a.certificate.request",
  57                 "Generates a certificate request"}, //-certreq
  58         {"Changes.an.entry.s.alias",
  59                 "Changes an entry's alias"}, //-changealias
  60         {"Deletes.an.entry",
  61                 "Deletes an entry"}, //-delete
  62         {"Exports.certificate",
  63                 "Exports certificate"}, //-exportcert
  64         {"Generates.a.key.pair",
  65                 "Generates a key pair"}, //-genkeypair
  66         {"Generates.a.secret.key",
  67                 "Generates a secret key"}, //-genseckey
  68         {"Generates.certificate.from.a.certificate.request",
  69                 "Generates certificate from a certificate request"}, //-gencert
  70         {"Generates.CRL", "Generates CRL"}, //-gencrl
  71         {"Generated.keyAlgName.secret.key",
  72                 "Generated {0} secret key"}, //-genseckey
  73         {"Generated.keysize.bit.keyAlgName.secret.key",


< prev index next >