src/jdk.jartool/share/classes/sun/security/tools/jarsigner/Resources.java
author prr
Thu, 27 Sep 2018 11:46:28 -0700
changeset 52237 170e876d529c
parent 48893 454518b338b0
child 53398 dd1be616c95e
permissions -rw-r--r--
Merge
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
48543
7067fe4e054e 8189102: All tools should support -?, -h and --help
goetz
parents: 47744
diff changeset
     2
 * Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 5462
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 5462
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 *
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 5462
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 5462
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 5462
diff changeset
    23
 * questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
14182
3041082abb40 7194449: String resources for Key Tool and Policy Tool should be in their respective packages
sflores
parents: 9011
diff changeset
    26
package sun.security.tools.jarsigner;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
 * <p> This class represents the <code>ResourceBundle</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
 * for JarSigner.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
 */
14182
3041082abb40 7194449: String resources for Key Tool and Policy Tool should be in their respective packages
sflores
parents: 9011
diff changeset
    33
public class Resources extends java.util.ListResourceBundle {
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
    private static final Object[][] contents = {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
        // shared (from jarsigner)
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
    38
        {"SPACE", " "},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
    39
        {"2SPACE", "  "},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
    40
        {"6SPACE", "      "},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
    41
        {"COMMA", ", "},
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
39633
9dc7586be5f0 8130302: jarsigner and keytool -providerClass needs be re-examined for modules
weijun
parents: 39045
diff changeset
    43
        {"provclass.not.a.provider", "%s not a provider"},
9dc7586be5f0 8130302: jarsigner and keytool -providerClass needs be re-examined for modules
weijun
parents: 39045
diff changeset
    44
        {"provider.name.not.found", "Provider named \"%s\" not found"},
9dc7586be5f0 8130302: jarsigner and keytool -providerClass needs be re-examined for modules
weijun
parents: 39045
diff changeset
    45
        {"provider.class.not.found", "Provider \"%s\" not found"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
    46
        {"jarsigner.error.", "jarsigner error: "},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
    47
        {"Illegal.option.", "Illegal option: "},
31060
be4eb6360ee0 8076535: Deprecate the com.sun.jarsigner package
juh
parents: 29369
diff changeset
    48
        {"This.option.is.deprecated", "This option is deprecated: "},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
    49
        {".keystore.must.be.NONE.if.storetype.is.{0}",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
                "-keystore must be NONE if -storetype is {0}"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
    51
        {".keypass.can.not.be.specified.if.storetype.is.{0}",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
                "-keypass can not be specified if -storetype is {0}"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
    53
        {"If.protected.is.specified.then.storepass.and.keypass.must.not.be.specified",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
                "If -protected is specified, then -storepass and -keypass must not be specified"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
    55
        {"If.keystore.is.not.password.protected.then.storepass.and.keypass.must.not.be.specified",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
                 "If keystore is not password protected, then -storepass and -keypass must not be specified"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
    57
        {"Usage.jarsigner.options.jar.file.alias",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
                "Usage: jarsigner [options] jar-file alias"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
    59
        {".jarsigner.verify.options.jar.file.alias.",
2432
dc17f417ef85 6802846: jarsigner needs enhanced cert validation(options)
weijun
parents: 2
diff changeset
    60
                "       jarsigner -verify [options] jar-file [alias...]"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
    61
        {".keystore.url.keystore.location",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
                "[-keystore <url>]           keystore location"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
    63
        {".storepass.password.password.for.keystore.integrity",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
            "[-storepass <password>]     password for keystore integrity"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
    65
        {".storetype.type.keystore.type",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
                "[-storetype <type>]         keystore type"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
    67
        {".keypass.password.password.for.private.key.if.different.",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
                "[-keypass <password>]       password for private key (if different)"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
    69
        {".certchain.file.name.of.alternative.certchain.file",
2432
dc17f417ef85 6802846: jarsigner needs enhanced cert validation(options)
weijun
parents: 2
diff changeset
    70
                "[-certchain <file>]         name of alternative certchain file"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
    71
        {".sigfile.file.name.of.SF.DSA.file",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
                "[-sigfile <file>]           name of .SF/.DSA file"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
    73
        {".signedjar.file.name.of.signed.JAR.file",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
                "[-signedjar <file>]         name of signed JAR file"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
    75
        {".digestalg.algorithm.name.of.digest.algorithm",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
                "[-digestalg <algorithm>]    name of digest algorithm"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
    77
        {".sigalg.algorithm.name.of.signature.algorithm",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
                "[-sigalg <algorithm>]       name of signature algorithm"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
    79
        {".verify.verify.a.signed.JAR.file",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
                "[-verify]                   verify a signed JAR file"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
    81
        {".verbose.suboptions.verbose.output.when.signing.verifying.",
2432
dc17f417ef85 6802846: jarsigner needs enhanced cert validation(options)
weijun
parents: 2
diff changeset
    82
                "[-verbose[:suboptions]]     verbose output when signing/verifying."},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
    83
        {".suboptions.can.be.all.grouped.or.summary",
2432
dc17f417ef85 6802846: jarsigner needs enhanced cert validation(options)
weijun
parents: 2
diff changeset
    84
                "                            suboptions can be all, grouped or summary"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
    85
        {".certs.display.certificates.when.verbose.and.verifying",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
                "[-certs]                    display certificates when verbose and verifying"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
    87
        {".tsa.url.location.of.the.Timestamping.Authority",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
                "[-tsa <url>]                location of the Timestamping Authority"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
    89
        {".tsacert.alias.public.key.certificate.for.Timestamping.Authority",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
                "[-tsacert <alias>]          public key certificate for Timestamping Authority"},
17161
df1ec0e2f0e7 8009636: JARSigner including TimeStamp PolicyID (TSAPolicyID) as defined in RFC3161
weijun
parents: 14182
diff changeset
    91
        {".tsapolicyid.tsapolicyid.for.Timestamping.Authority",
df1ec0e2f0e7 8009636: JARSigner including TimeStamp PolicyID (TSAPolicyID) as defined in RFC3161
weijun
parents: 14182
diff changeset
    92
                "[-tsapolicyid <oid>]        TSAPolicyID for Timestamping Authority"},
24034
31fe17eef94a 8038837: Add support to jarsigner for specifying timestamp hash algorithm
weijun
parents: 23010
diff changeset
    93
        {".tsadigestalg.algorithm.of.digest.data.in.timestamping.request",
31fe17eef94a 8038837: Add support to jarsigner for specifying timestamp hash algorithm
weijun
parents: 23010
diff changeset
    94
                "[-tsadigestalg <algorithm>] algorithm of digest data in timestamping request"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
    95
        {".altsigner.class.class.name.of.an.alternative.signing.mechanism",
31060
be4eb6360ee0 8076535: Deprecate the com.sun.jarsigner package
juh
parents: 29369
diff changeset
    96
                "[-altsigner <class>]        class name of an alternative signing mechanism\n" +
be4eb6360ee0 8076535: Deprecate the com.sun.jarsigner package
juh
parents: 29369
diff changeset
    97
                "                            (This option has been deprecated.)"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
    98
        {".altsignerpath.pathlist.location.of.an.alternative.signing.mechanism",
31060
be4eb6360ee0 8076535: Deprecate the com.sun.jarsigner package
juh
parents: 29369
diff changeset
    99
                "[-altsignerpath <pathlist>] location of an alternative signing mechanism\n" +
be4eb6360ee0 8076535: Deprecate the com.sun.jarsigner package
juh
parents: 29369
diff changeset
   100
                "                            (This option has been deprecated.)"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   101
        {".internalsf.include.the.SF.file.inside.the.signature.block",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
                "[-internalsf]               include the .SF file inside the signature block"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   103
        {".sectionsonly.don.t.compute.hash.of.entire.manifest",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
                "[-sectionsonly]             don't compute hash of entire manifest"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   105
        {".protected.keystore.has.protected.authentication.path",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
                "[-protected]                keystore has protected authentication path"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   107
        {".providerName.name.provider.name",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
                "[-providerName <name>]      provider name"},
39633
9dc7586be5f0 8130302: jarsigner and keytool -providerClass needs be re-examined for modules
weijun
parents: 39045
diff changeset
   109
        {".add.provider.option",
9dc7586be5f0 8130302: jarsigner and keytool -providerClass needs be re-examined for modules
weijun
parents: 39045
diff changeset
   110
                "[-addprovider <name>        add security provider by name (e.g. SunPKCS11)"},
9dc7586be5f0 8130302: jarsigner and keytool -providerClass needs be re-examined for modules
weijun
parents: 39045
diff changeset
   111
        {".providerArg.option.1",
9dc7586be5f0 8130302: jarsigner and keytool -providerClass needs be re-examined for modules
weijun
parents: 39045
diff changeset
   112
                "  [-providerArg <arg>]] ... configure argument for -addprovider"},
9dc7586be5f0 8130302: jarsigner and keytool -providerClass needs be re-examined for modules
weijun
parents: 39045
diff changeset
   113
        {".providerClass.option",
9dc7586be5f0 8130302: jarsigner and keytool -providerClass needs be re-examined for modules
weijun
parents: 39045
diff changeset
   114
                "[-providerClass <class>     add security provider by fully-qualified class name"},
9dc7586be5f0 8130302: jarsigner and keytool -providerClass needs be re-examined for modules
weijun
parents: 39045
diff changeset
   115
        {".providerArg.option.2",
9dc7586be5f0 8130302: jarsigner and keytool -providerClass needs be re-examined for modules
weijun
parents: 39045
diff changeset
   116
                "  [-providerArg <arg>]] ... configure argument for -providerClass"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   117
        {".strict.treat.warnings.as.errors",
2432
dc17f417ef85 6802846: jarsigner needs enhanced cert validation(options)
weijun
parents: 2
diff changeset
   118
                "[-strict]                   treat warnings as errors"},
24868
89d9bd9eba96 8023197: Pre-configured command line options for keytool and jarsigner
weijun
parents: 24034
diff changeset
   119
        {".conf.url.specify.a.pre.configured.options.file",
89d9bd9eba96 8023197: Pre-configured command line options for keytool and jarsigner
weijun
parents: 24034
diff changeset
   120
                "[-conf <url>]               specify a pre-configured options file"},
48543
7067fe4e054e 8189102: All tools should support -?, -h and --help
goetz
parents: 47744
diff changeset
   121
        {".print.this.help.message",
7067fe4e054e 8189102: All tools should support -?, -h and --help
goetz
parents: 47744
diff changeset
   122
                "[-? -h --help]              Print this help message"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   123
        {"Option.lacks.argument", "Option lacks argument"},
48543
7067fe4e054e 8189102: All tools should support -?, -h and --help
goetz
parents: 47744
diff changeset
   124
        {"Please.type.jarsigner.help.for.usage", "Please type jarsigner --help for usage"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   125
        {"Please.specify.jarfile.name", "Please specify jarfile name"},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   126
        {"Please.specify.alias.name", "Please specify alias name"},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   127
        {"Only.one.alias.can.be.specified", "Only one alias can be specified"},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   128
        {"This.jar.contains.signed.entries.which.is.not.signed.by.the.specified.alias.es.",
22324
54a74fc6e85c 8026304: jarsigner output bad grammar
weijun
parents: 22315
diff changeset
   129
                 "This jar contains signed entries which are not signed by the specified alias(es)."},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   130
        {"This.jar.contains.signed.entries.that.s.not.signed.by.alias.in.this.keystore.",
22324
54a74fc6e85c 8026304: jarsigner output bad grammar
weijun
parents: 22315
diff changeset
   131
                  "This jar contains signed entries that are not signed by alias in this keystore."},
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
        {"s", "s"},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
        {"m", "m"},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
        {"k", "k"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   135
        {".and.d.more.", "(and %d more)"},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   136
        {".s.signature.was.verified.",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
                "  s = signature was verified "},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   138
        {".m.entry.is.listed.in.manifest",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
                "  m = entry is listed in manifest"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   140
        {".k.at.least.one.certificate.was.found.in.keystore",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
                "  k = at least one certificate was found in keystore"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   142
        {".X.not.signed.by.specified.alias.es.",
2432
dc17f417ef85 6802846: jarsigner needs enhanced cert validation(options)
weijun
parents: 2
diff changeset
   143
                "  X = not signed by specified alias(es)"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   144
        {"no.manifest.", "no manifest."},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   145
        {".Signature.related.entries.","(Signature related entries)"},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   146
        {".Unsigned.entries.", "(Unsigned entries)"},
41582
246512d81eba 8165816: jarsigner -verify shows jar unsigned if it was signed with a weak algorithm
weijun
parents: 40177
diff changeset
   147
        {"jar.is.unsigned",
246512d81eba 8165816: jarsigner -verify shows jar unsigned if it was signed with a weak algorithm
weijun
parents: 40177
diff changeset
   148
                "jar is unsigned."},
246512d81eba 8165816: jarsigner -verify shows jar unsigned if it was signed with a weak algorithm
weijun
parents: 40177
diff changeset
   149
        {"jar.treated.unsigned",
41590
1c5b1891b8e0 8163304: jarsigner -verbose -verify should print the algorithms used to sign the jar
weijun
parents: 41582
diff changeset
   150
                "WARNING: Signature is either not parsable or not verifiable, and the jar will be treated as unsigned. For more information, re-run jarsigner with debug enabled (-J-Djava.security.debug=jar)."},
1c5b1891b8e0 8163304: jarsigner -verbose -verify should print the algorithms used to sign the jar
weijun
parents: 41582
diff changeset
   151
        {"jar.treated.unsigned.see.weak",
1c5b1891b8e0 8163304: jarsigner -verbose -verify should print the algorithms used to sign the jar
weijun
parents: 41582
diff changeset
   152
                "The jar will be treated as unsigned, because it is signed with a weak algorithm that is now disabled.\n\nRe-run jarsigner with the -verbose option for more details."},
1c5b1891b8e0 8163304: jarsigner -verbose -verify should print the algorithms used to sign the jar
weijun
parents: 41582
diff changeset
   153
        {"jar.treated.unsigned.see.weak.verbose",
1c5b1891b8e0 8163304: jarsigner -verbose -verify should print the algorithms used to sign the jar
weijun
parents: 41582
diff changeset
   154
                "WARNING: The jar will be treated as unsigned, because it is signed with a weak algorithm that is now disabled by the security property:"},
22315
529f1cc322fc 8024302: Clarify jar verifications
weijun
parents: 17161
diff changeset
   155
        {"jar.signed.", "jar signed."},
529f1cc322fc 8024302: Clarify jar verifications
weijun
parents: 17161
diff changeset
   156
        {"jar.signed.with.signer.errors.", "jar signed, with signer errors."},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   157
        {"jar.verified.", "jar verified."},
22315
529f1cc322fc 8024302: Clarify jar verifications
weijun
parents: 17161
diff changeset
   158
        {"jar.verified.with.signer.errors.", "jar verified, with signer errors."},
41590
1c5b1891b8e0 8163304: jarsigner -verbose -verify should print the algorithms used to sign the jar
weijun
parents: 41582
diff changeset
   159
1c5b1891b8e0 8163304: jarsigner -verbose -verify should print the algorithms used to sign the jar
weijun
parents: 41582
diff changeset
   160
        {"history.with.ts", "- Signed by \"%1$s\"\n    Digest algorithm: %2$s\n    Signature algorithm: %3$s, %4$s\n  Timestamped by \"%6$s\" on %5$tc\n    Timestamp digest algorithm: %7$s\n    Timestamp signature algorithm: %8$s, %9$s"},
1c5b1891b8e0 8163304: jarsigner -verbose -verify should print the algorithms used to sign the jar
weijun
parents: 41582
diff changeset
   161
        {"history.without.ts", "- Signed by \"%1$s\"\n    Digest algorithm: %2$s\n    Signature algorithm: %3$s, %4$s"},
1c5b1891b8e0 8163304: jarsigner -verbose -verify should print the algorithms used to sign the jar
weijun
parents: 41582
diff changeset
   162
        {"history.unparsable", "- Unparsable signature-related file %s"},
1c5b1891b8e0 8163304: jarsigner -verbose -verify should print the algorithms used to sign the jar
weijun
parents: 41582
diff changeset
   163
        {"history.nosf", "- Missing signature-related file META-INF/%s.SF"},
1c5b1891b8e0 8163304: jarsigner -verbose -verify should print the algorithms used to sign the jar
weijun
parents: 41582
diff changeset
   164
        {"history.nobk", "- Missing block file for signature-related file META-INF/%s.SF"},
1c5b1891b8e0 8163304: jarsigner -verbose -verify should print the algorithms used to sign the jar
weijun
parents: 41582
diff changeset
   165
1c5b1891b8e0 8163304: jarsigner -verbose -verify should print the algorithms used to sign the jar
weijun
parents: 41582
diff changeset
   166
        {"with.weak", "%s (weak)"},
1c5b1891b8e0 8163304: jarsigner -verbose -verify should print the algorithms used to sign the jar
weijun
parents: 41582
diff changeset
   167
        {"key.bit", "%d-bit key"},
1c5b1891b8e0 8163304: jarsigner -verbose -verify should print the algorithms used to sign the jar
weijun
parents: 41582
diff changeset
   168
        {"key.bit.weak", "%d-bit key (weak)"},
46139
5196af754957 8185934: keytool shows "Signature algorithm: SHA1withECDSA, -1-bit key"
weijun
parents: 41590
diff changeset
   169
        {"unknown.size", "unknown size"},
41590
1c5b1891b8e0 8163304: jarsigner -verbose -verify should print the algorithms used to sign the jar
weijun
parents: 41582
diff changeset
   170
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   171
        {"jarsigner.", "jarsigner: "},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   172
        {"signature.filename.must.consist.of.the.following.characters.A.Z.0.9.or.",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
                "signature filename must consist of the following characters: A-Z, 0-9, _ or -"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   174
        {"unable.to.open.jar.file.", "unable to open jar file: "},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   175
        {"unable.to.create.", "unable to create: "},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   176
        {".adding.", "   adding: "},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   177
        {".updating.", " updating: "},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   178
        {".signing.", "  signing: "},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   179
        {"attempt.to.rename.signedJarFile.to.jarFile.failed",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
                "attempt to rename {0} to {1} failed"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   181
        {"attempt.to.rename.jarFile.to.origJar.failed",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
                "attempt to rename {0} to {1} failed"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   183
        {"unable.to.sign.jar.", "unable to sign jar: "},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   184
        {"Enter.Passphrase.for.keystore.", "Enter Passphrase for keystore: "},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   185
        {"keystore.load.", "keystore load: "},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   186
        {"certificate.exception.", "certificate exception: "},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   187
        {"unable.to.instantiate.keystore.class.",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
                "unable to instantiate keystore class: "},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   189
        {"Certificate.chain.not.found.for.alias.alias.must.reference.a.valid.KeyStore.key.entry.containing.a.private.key.and",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
                "Certificate chain not found for: {0}.  {1} must reference a valid KeyStore key entry containing a private key and corresponding public key certificate chain."},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   191
        {"File.specified.by.certchain.does.not.exist",
2432
dc17f417ef85 6802846: jarsigner needs enhanced cert validation(options)
weijun
parents: 2
diff changeset
   192
                "File specified by -certchain does not exist"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   193
        {"Cannot.restore.certchain.from.file.specified",
2432
dc17f417ef85 6802846: jarsigner needs enhanced cert validation(options)
weijun
parents: 2
diff changeset
   194
                "Cannot restore certchain from file specified"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   195
        {"Certificate.chain.not.found.in.the.file.specified.",
2432
dc17f417ef85 6802846: jarsigner needs enhanced cert validation(options)
weijun
parents: 2
diff changeset
   196
                "Certificate chain not found in the file specified."},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   197
        {"found.non.X.509.certificate.in.signer.s.chain",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
                "found non-X.509 certificate in signer's chain"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   199
        {"incomplete.certificate.chain", "incomplete certificate chain"},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   200
        {"Enter.key.password.for.alias.", "Enter key password for {0}: "},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   201
        {"unable.to.recover.key.from.keystore",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
                "unable to recover key from keystore"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   203
        {"key.associated.with.alias.not.a.private.key",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
                "key associated with {0} not a private key"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   205
        {"you.must.enter.key.password", "you must enter key password"},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   206
        {"unable.to.read.password.", "unable to read password: "},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   207
        {"certificate.is.valid.from", "certificate is valid from {0} to {1}"},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   208
        {"certificate.expired.on", "certificate expired on {0}"},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   209
        {"certificate.is.not.valid.until",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
                "certificate is not valid until {0}"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   211
        {"certificate.will.expire.on", "certificate will expire on {0}"},
47469
6ae08c311cd3 8180289: jarsigner treats timestamped signed jar invalid after the signer cert expires
weijun
parents: 47216
diff changeset
   212
        {".Invalid.certificate.chain.", "[Invalid certificate chain: "},
6ae08c311cd3 8180289: jarsigner treats timestamped signed jar invalid after the signer cert expires
weijun
parents: 47216
diff changeset
   213
        {".Invalid.TSA.certificate.chain.", "[Invalid TSA certificate chain: "},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   214
        {"requesting.a.signature.timestamp",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
                "requesting a signature timestamp"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   216
        {"TSA.location.", "TSA location: "},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   217
        {"TSA.certificate.", "TSA certificate: "},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   218
        {"no.response.from.the.Timestamping.Authority.",
9011
c08eb9697ee4 7019937: Translatability bug - Remove Unused String - String ID , read end of file
mullan
parents: 8994
diff changeset
   219
                "no response from the Timestamping Authority. When connecting"
c08eb9697ee4 7019937: Translatability bug - Remove Unused String - String ID , read end of file
mullan
parents: 8994
diff changeset
   220
                + " from behind a firewall an HTTP or HTTPS proxy may need to"
c08eb9697ee4 7019937: Translatability bug - Remove Unused String - String ID , read end of file
mullan
parents: 8994
diff changeset
   221
                + " be specified. Supply the following options to jarsigner:"},
8994
ef946d820d04 7028490: better suggestion for jarsigner when TSA is not accessible
weijun
parents: 8556
diff changeset
   222
        {"or", "or"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   223
        {"Certificate.not.found.for.alias.alias.must.reference.a.valid.KeyStore.entry.containing.an.X.509.public.key.certificate.for.the",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
                "Certificate not found for: {0}.  {1} must reference a valid KeyStore entry containing an X.509 public key certificate for the Timestamping Authority."},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   225
        {"using.an.alternative.signing.mechanism",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
                "using an alternative signing mechanism"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   227
        {"entry.was.signed.on", "entry was signed on {0}"},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   228
        {"Warning.", "Warning: "},
22315
529f1cc322fc 8024302: Clarify jar verifications
weijun
parents: 17161
diff changeset
   229
        {"Error.", "Error: "},
47469
6ae08c311cd3 8180289: jarsigner treats timestamped signed jar invalid after the signer cert expires
weijun
parents: 47216
diff changeset
   230
        {"...Signer", ">>> Signer"},
6ae08c311cd3 8180289: jarsigner treats timestamped signed jar invalid after the signer cert expires
weijun
parents: 47216
diff changeset
   231
        {"...TSA", ">>> TSA"},
48893
454518b338b0 8191438: jarsigner should print when a timestamp will expire
weijun
parents: 48543
diff changeset
   232
        {"trusted.certificate", "trusted certificate"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   233
        {"This.jar.contains.unsigned.entries.which.have.not.been.integrity.checked.",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
                "This jar contains unsigned entries which have not been integrity-checked. "},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   235
        {"This.jar.contains.entries.whose.signer.certificate.has.expired.",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
                "This jar contains entries whose signer certificate has expired. "},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   237
        {"This.jar.contains.entries.whose.signer.certificate.will.expire.within.six.months.",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
                "This jar contains entries whose signer certificate will expire within six months. "},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   239
        {"This.jar.contains.entries.whose.signer.certificate.is.not.yet.valid.",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
                "This jar contains entries whose signer certificate is not yet valid. "},
34382
5d11306d6969 8130132: jarsigner should emit warning if weak algorithms or keysizes are used
weijun
parents: 31060
diff changeset
   241
        {"This.jar.contains.entries.whose.signer.certificate.is.self.signed.",
5d11306d6969 8130132: jarsigner should emit warning if weak algorithms or keysizes are used
weijun
parents: 31060
diff changeset
   242
                "This jar contains entries whose signer certificate is self-signed."},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   243
        {"Re.run.with.the.verbose.option.for.more.details.",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
                "Re-run with the -verbose option for more details."},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   245
        {"Re.run.with.the.verbose.and.certs.options.for.more.details.",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
                "Re-run with the -verbose and -certs options for more details."},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   247
        {"The.signer.certificate.has.expired.",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   248
                "The signer certificate has expired."},
48893
454518b338b0 8191438: jarsigner should print when a timestamp will expire
weijun
parents: 48543
diff changeset
   249
        {"The.timestamp.expired.1.but.usable.2",
454518b338b0 8191438: jarsigner should print when a timestamp will expire
weijun
parents: 48543
diff changeset
   250
                "The timestamp expired on %1$tY-%1$tm-%1$td. However, the JAR will be valid until the signer certificate expires on %2$tY-%2$tm-%2$td."},
454518b338b0 8191438: jarsigner should print when a timestamp will expire
weijun
parents: 48543
diff changeset
   251
        {"The.timestamp.has.expired.",
454518b338b0 8191438: jarsigner should print when a timestamp will expire
weijun
parents: 48543
diff changeset
   252
                "The timestamp has expired."},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   253
        {"The.signer.certificate.will.expire.within.six.months.",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   254
                "The signer certificate will expire within six months."},
48893
454518b338b0 8191438: jarsigner should print when a timestamp will expire
weijun
parents: 48543
diff changeset
   255
        {"The.timestamp.will.expire.within.one.year.on.1",
454518b338b0 8191438: jarsigner should print when a timestamp will expire
weijun
parents: 48543
diff changeset
   256
                "The timestamp will expire within one year on %1$tY-%1$tm-%1$td."},
454518b338b0 8191438: jarsigner should print when a timestamp will expire
weijun
parents: 48543
diff changeset
   257
        {"The.timestamp.will.expire.within.one.year.on.1.but.2",
454518b338b0 8191438: jarsigner should print when a timestamp will expire
weijun
parents: 48543
diff changeset
   258
                "The timestamp will expire within one year on %1$tY-%1$tm-%1$td. However, the JAR will be valid until the signer certificate expires on %2$tY-%2$tm-%2$td."},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   259
        {"The.signer.certificate.is.not.yet.valid.",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   260
                "The signer certificate is not yet valid."},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   261
        {"The.signer.certificate.s.KeyUsage.extension.doesn.t.allow.code.signing.",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   262
                 "The signer certificate's KeyUsage extension doesn't allow code signing."},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   263
        {"The.signer.certificate.s.ExtendedKeyUsage.extension.doesn.t.allow.code.signing.",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   264
                 "The signer certificate's ExtendedKeyUsage extension doesn't allow code signing."},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   265
        {"The.signer.certificate.s.NetscapeCertType.extension.doesn.t.allow.code.signing.",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   266
                 "The signer certificate's NetscapeCertType extension doesn't allow code signing."},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   267
        {"This.jar.contains.entries.whose.signer.certificate.s.KeyUsage.extension.doesn.t.allow.code.signing.",
2432
dc17f417ef85 6802846: jarsigner needs enhanced cert validation(options)
weijun
parents: 2
diff changeset
   268
                 "This jar contains entries whose signer certificate's KeyUsage extension doesn't allow code signing."},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   269
        {"This.jar.contains.entries.whose.signer.certificate.s.ExtendedKeyUsage.extension.doesn.t.allow.code.signing.",
2432
dc17f417ef85 6802846: jarsigner needs enhanced cert validation(options)
weijun
parents: 2
diff changeset
   270
                 "This jar contains entries whose signer certificate's ExtendedKeyUsage extension doesn't allow code signing."},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   271
        {"This.jar.contains.entries.whose.signer.certificate.s.NetscapeCertType.extension.doesn.t.allow.code.signing.",
2432
dc17f417ef85 6802846: jarsigner needs enhanced cert validation(options)
weijun
parents: 2
diff changeset
   272
                 "This jar contains entries whose signer certificate's NetscapeCertType extension doesn't allow code signing."},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   273
        {".{0}.extension.does.not.support.code.signing.",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   274
                 "[{0} extension does not support code signing]"},
47469
6ae08c311cd3 8180289: jarsigner treats timestamped signed jar invalid after the signer cert expires
weijun
parents: 47216
diff changeset
   275
        {"The.signer.s.certificate.chain.is.invalid.reason.1",
6ae08c311cd3 8180289: jarsigner treats timestamped signed jar invalid after the signer cert expires
weijun
parents: 47216
diff changeset
   276
                "The signer's certificate chain is invalid. Reason: %s"},
6ae08c311cd3 8180289: jarsigner treats timestamped signed jar invalid after the signer cert expires
weijun
parents: 47216
diff changeset
   277
        {"The.tsa.certificate.chain.is.invalid.reason.1",
6ae08c311cd3 8180289: jarsigner treats timestamped signed jar invalid after the signer cert expires
weijun
parents: 47216
diff changeset
   278
                "The TSA certificate chain is invalid. Reason: %s"},
34382
5d11306d6969 8130132: jarsigner should emit warning if weak algorithms or keysizes are used
weijun
parents: 31060
diff changeset
   279
        {"The.signer.s.certificate.is.self.signed.",
5d11306d6969 8130132: jarsigner should emit warning if weak algorithms or keysizes are used
weijun
parents: 31060
diff changeset
   280
                "The signer's certificate is self-signed."},
5d11306d6969 8130132: jarsigner should emit warning if weak algorithms or keysizes are used
weijun
parents: 31060
diff changeset
   281
        {"The.1.algorithm.specified.for.the.2.option.is.considered.a.security.risk.",
5d11306d6969 8130132: jarsigner should emit warning if weak algorithms or keysizes are used
weijun
parents: 31060
diff changeset
   282
                "The %1$s algorithm specified for the %2$s option is considered a security risk."},
41590
1c5b1891b8e0 8163304: jarsigner -verbose -verify should print the algorithms used to sign the jar
weijun
parents: 41582
diff changeset
   283
        {"The.1.signing.key.has.a.keysize.of.2.which.is.considered.a.security.risk.",
47744
5c2f21c319c4 8191137: keytool fails to format resource strings for keys for some languages after JDK-8171319
weijun
parents: 47469
diff changeset
   284
                "The %1$s signing key has a keysize of %2$d which is considered a security risk."},
47469
6ae08c311cd3 8180289: jarsigner treats timestamped signed jar invalid after the signer cert expires
weijun
parents: 47216
diff changeset
   285
        {"This.jar.contains.entries.whose.certificate.chain.is.invalid.reason.1",
6ae08c311cd3 8180289: jarsigner treats timestamped signed jar invalid after the signer cert expires
weijun
parents: 47216
diff changeset
   286
                 "This jar contains entries whose certificate chain is invalid. Reason: %s"},
6ae08c311cd3 8180289: jarsigner treats timestamped signed jar invalid after the signer cert expires
weijun
parents: 47216
diff changeset
   287
        {"This.jar.contains.entries.whose.tsa.certificate.chain.is.invalid.reason.1",
6ae08c311cd3 8180289: jarsigner treats timestamped signed jar invalid after the signer cert expires
weijun
parents: 47216
diff changeset
   288
                "This jar contains entries whose TSA certificate chain is invalid. Reason: %s"},
22315
529f1cc322fc 8024302: Clarify jar verifications
weijun
parents: 17161
diff changeset
   289
        {"no.timestamp.signing",
38767
a0240b701a5a 8152108: Correct jarsigner warning message about missing timestamp
weijun
parents: 34382
diff changeset
   290
                "No -tsa or -tsacert is provided and this jar is not timestamped. Without a timestamp, users may not be able to validate this jar after the signer certificate's expiration date (%1$tY-%1$tm-%1$td)."},
48893
454518b338b0 8191438: jarsigner should print when a timestamp will expire
weijun
parents: 48543
diff changeset
   291
        {"invalid.timestamp.signing",
454518b338b0 8191438: jarsigner should print when a timestamp will expire
weijun
parents: 48543
diff changeset
   292
                "The timestamp is invalid. Without a valid timestamp, users may not be able to validate this jar after the signer certificate's expiration date (%1$tY-%1$tm-%1$td)."},
22315
529f1cc322fc 8024302: Clarify jar verifications
weijun
parents: 17161
diff changeset
   293
        {"no.timestamp.verifying",
39045
35d9f2f302ad 8027781: New jarsigner timestamp warning is grammatically incorrect
weijun
parents: 38767
diff changeset
   294
                "This jar contains signatures that do not include a timestamp. Without a timestamp, users may not be able to validate this jar after any of the signer certificates expire (as early as %1$tY-%1$tm-%1$td)."},
47469
6ae08c311cd3 8180289: jarsigner treats timestamped signed jar invalid after the signer cert expires
weijun
parents: 47216
diff changeset
   295
        {"bad.timestamp.verifying",
6ae08c311cd3 8180289: jarsigner treats timestamped signed jar invalid after the signer cert expires
weijun
parents: 47216
diff changeset
   296
                "This jar contains signatures that include an invalid timestamp. Without a valid timestamp, users may not be able to validate this jar after any of the signer certificates expire (as early as %1$tY-%1$tm-%1$td).\nRerun jarsigner with -J-Djava.security.debug=jar for more information."},
48893
454518b338b0 8191438: jarsigner should print when a timestamp will expire
weijun
parents: 48543
diff changeset
   297
        {"The.signer.certificate.will.expire.on.1.",
454518b338b0 8191438: jarsigner should print when a timestamp will expire
weijun
parents: 48543
diff changeset
   298
                "The signer certificate will expire on %1$tY-%1$tm-%1$td."},
454518b338b0 8191438: jarsigner should print when a timestamp will expire
weijun
parents: 48543
diff changeset
   299
        {"The.timestamp.will.expire.on.1.",
454518b338b0 8191438: jarsigner should print when a timestamp will expire
weijun
parents: 48543
diff changeset
   300
                "The timestamp will expire on %1$tY-%1$tm-%1$td."},
454518b338b0 8191438: jarsigner should print when a timestamp will expire
weijun
parents: 48543
diff changeset
   301
        {"signer.cert.expired.1.but.timestamp.good.2.",
454518b338b0 8191438: jarsigner should print when a timestamp will expire
weijun
parents: 48543
diff changeset
   302
                "The signer certificate expired on %1$tY-%1$tm-%1$td. However, the JAR will be valid until the timestamp expires on %2$tY-%2$tm-%2$td."},
14182
3041082abb40 7194449: String resources for Key Tool and Policy Tool should be in their respective packages
sflores
parents: 9011
diff changeset
   303
        {"Unknown.password.type.", "Unknown password type: "},
3041082abb40 7194449: String resources for Key Tool and Policy Tool should be in their respective packages
sflores
parents: 9011
diff changeset
   304
        {"Cannot.find.environment.variable.",
3041082abb40 7194449: String resources for Key Tool and Policy Tool should be in their respective packages
sflores
parents: 9011
diff changeset
   305
                "Cannot find environment variable: "},
3041082abb40 7194449: String resources for Key Tool and Policy Tool should be in their respective packages
sflores
parents: 9011
diff changeset
   306
        {"Cannot.find.file.", "Cannot find file: "},
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   307
    };
90ce3da70b43 Initial load
duke
parents:
diff changeset
   308
90ce3da70b43 Initial load
duke
parents:
diff changeset
   309
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   310
     * Returns the contents of this <code>ResourceBundle</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   311
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   312
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   313
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   314
     * @return the contents of this <code>ResourceBundle</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   315
     */
14182
3041082abb40 7194449: String resources for Key Tool and Policy Tool should be in their respective packages
sflores
parents: 9011
diff changeset
   316
    @Override
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   317
    public Object[][] getContents() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   318
        return contents;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   319
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   320
}