jdk/src/share/classes/sun/security/tools/JarSignerResources.java
author weijun
Thu, 11 Nov 2010 15:51:12 +0800
changeset 7179 4afb81e50183
parent 5506 202f599c92aa
child 8556 d3d6e4643560
permissions -rw-r--r--
6987827: security/util/Resources.java needs improvement Reviewed-by: valeriep
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 5462
diff changeset
     2
 * Copyright (c) 2000, 2010, 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
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
package sun.security.tools;
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
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
public class JarSignerResources extends java.util.ListResourceBundle {
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
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
    43
        {"provName.not.a.provider", "{0} not a provider"},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
    44
        {"signerClass.is.not.a.signing.mechanism", "{0} is not a signing mechanism"},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
    45
        {"jarsigner.error.", "jarsigner error: "},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
    46
        {"Illegal.option.", "Illegal option: "},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
    47
        {".keystore.must.be.NONE.if.storetype.is.{0}",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
                "-keystore must be NONE if -storetype is {0}"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
    49
        {".keypass.can.not.be.specified.if.storetype.is.{0}",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
                "-keypass can not be specified if -storetype is {0}"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
    51
        {"If.protected.is.specified.then.storepass.and.keypass.must.not.be.specified",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
                "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
    53
        {"If.keystore.is.not.password.protected.then.storepass.and.keypass.must.not.be.specified",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
                 "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
    55
        {"Usage.jarsigner.options.jar.file.alias",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
                "Usage: jarsigner [options] jar-file alias"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
    57
        {".jarsigner.verify.options.jar.file.alias.",
2432
dc17f417ef85 6802846: jarsigner needs enhanced cert validation(options)
weijun
parents: 2
diff changeset
    58
                "       jarsigner -verify [options] jar-file [alias...]"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
    59
        {".keystore.url.keystore.location",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
                "[-keystore <url>]           keystore location"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
    61
        {".storepass.password.password.for.keystore.integrity",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
            "[-storepass <password>]     password for keystore integrity"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
    63
        {".storetype.type.keystore.type",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
                "[-storetype <type>]         keystore type"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
    65
        {".keypass.password.password.for.private.key.if.different.",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
                "[-keypass <password>]       password for private key (if different)"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
    67
        {".certchain.file.name.of.alternative.certchain.file",
2432
dc17f417ef85 6802846: jarsigner needs enhanced cert validation(options)
weijun
parents: 2
diff changeset
    68
                "[-certchain <file>]         name of alternative certchain file"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
    69
        {".sigfile.file.name.of.SF.DSA.file",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
                "[-sigfile <file>]           name of .SF/.DSA file"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
    71
        {".signedjar.file.name.of.signed.JAR.file",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
                "[-signedjar <file>]         name of signed JAR file"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
    73
        {".digestalg.algorithm.name.of.digest.algorithm",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
                "[-digestalg <algorithm>]    name of digest algorithm"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
    75
        {".sigalg.algorithm.name.of.signature.algorithm",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
                "[-sigalg <algorithm>]       name of signature algorithm"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
    77
        {".crl.auto.file.include.CRL.in.signed.jar",
5462
cb614e59f7f9 6890876: jarsigner can add CRL info into signed jar
weijun
parents: 2432
diff changeset
    78
                "[-crl[:auto| <file>]        include CRL in signed jar"},
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"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
    91
        {".altsigner.class.class.name.of.an.alternative.signing.mechanism",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
                "[-altsigner <class>]        class name of an alternative signing mechanism"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
    93
        {".altsignerpath.pathlist.location.of.an.alternative.signing.mechanism",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
                "[-altsignerpath <pathlist>] location of an alternative signing mechanism"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
    95
        {".internalsf.include.the.SF.file.inside.the.signature.block",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
                "[-internalsf]               include the .SF file inside the signature block"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
    97
        {".sectionsonly.don.t.compute.hash.of.entire.manifest",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
                "[-sectionsonly]             don't compute hash of entire manifest"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
    99
        {".protected.keystore.has.protected.authentication.path",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
                "[-protected]                keystore has protected authentication path"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   101
        {".providerName.name.provider.name",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
                "[-providerName <name>]      provider name"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   103
        {".providerClass.class.name.of.cryptographic.service.provider.s",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
                "[-providerClass <class>     name of cryptographic service provider's"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   105
        {".providerArg.arg.master.class.file.and.constructor.argument",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
                "  [-providerArg <arg>]] ... master class file and constructor argument"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   107
        {".strict.treat.warnings.as.errors",
2432
dc17f417ef85 6802846: jarsigner needs enhanced cert validation(options)
weijun
parents: 2
diff changeset
   108
                "[-strict]                   treat warnings as errors"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   109
        {"Option.lacks.argument", "Option lacks argument"},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   110
        {"Please.type.jarsigner.help.for.usage", "Please type jarsigner -help for usage"},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   111
        {"Please.specify.jarfile.name", "Please specify jarfile name"},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   112
        {"Please.specify.alias.name", "Please specify alias name"},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   113
        {"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
   114
        {"This.jar.contains.signed.entries.which.is.not.signed.by.the.specified.alias.es.",
2432
dc17f417ef85 6802846: jarsigner needs enhanced cert validation(options)
weijun
parents: 2
diff changeset
   115
                 "This jar contains signed entries which is not signed by the specified alias(es)."},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   116
        {"This.jar.contains.signed.entries.that.s.not.signed.by.alias.in.this.keystore.",
2432
dc17f417ef85 6802846: jarsigner needs enhanced cert validation(options)
weijun
parents: 2
diff changeset
   117
                  "This jar contains signed entries that's not signed by alias in this keystore."},
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
        {"s", "s"},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
        {"m", "m"},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
        {"k", "k"},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
        {"i", "i"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   122
        {".and.d.more.", "(and %d more)"},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   123
        {".s.signature.was.verified.",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
                "  s = signature was verified "},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   125
        {".m.entry.is.listed.in.manifest",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
                "  m = entry is listed in manifest"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   127
        {".k.at.least.one.certificate.was.found.in.keystore",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
                "  k = at least one certificate was found in keystore"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   129
        {".i.at.least.one.certificate.was.found.in.identity.scope",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
                "  i = at least one certificate was found in identity scope"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   131
        {".X.not.signed.by.specified.alias.es.",
2432
dc17f417ef85 6802846: jarsigner needs enhanced cert validation(options)
weijun
parents: 2
diff changeset
   132
                "  X = not signed by specified alias(es)"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   133
        {"no.manifest.", "no manifest."},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   134
        {".Signature.related.entries.","(Signature related entries)"},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   135
        {".Unsigned.entries.", "(Unsigned entries)"},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   136
        {"jar.is.unsigned.signatures.missing.or.not.parsable.",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
                "jar is unsigned. (signatures missing or not parsable)"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   138
        {"jar.verified.", "jar verified."},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   139
        {"jarsigner.", "jarsigner: "},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   140
        {"signature.filename.must.consist.of.the.following.characters.A.Z.0.9.or.",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
                "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
   142
        {"unable.to.open.jar.file.", "unable to open jar file: "},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   143
        {"unable.to.create.", "unable to create: "},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   144
        {".adding.", "   adding: "},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   145
        {".updating.", " updating: "},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   146
        {".signing.", "  signing: "},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   147
        {"attempt.to.rename.signedJarFile.to.jarFile.failed",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
                "attempt to rename {0} to {1} failed"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   149
        {"attempt.to.rename.jarFile.to.origJar.failed",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
                "attempt to rename {0} to {1} failed"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   151
        {"unable.to.sign.jar.", "unable to sign jar: "},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   152
        {"Enter.Passphrase.for.keystore.", "Enter Passphrase for keystore: "},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   153
        {"keystore.load.", "keystore load: "},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   154
        {"certificate.exception.", "certificate exception: "},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   155
        {"unable.to.instantiate.keystore.class.",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
                "unable to instantiate keystore class: "},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   157
        {"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
   158
                "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
   159
        {"File.specified.by.certchain.does.not.exist",
2432
dc17f417ef85 6802846: jarsigner needs enhanced cert validation(options)
weijun
parents: 2
diff changeset
   160
                "File specified by -certchain does not exist"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   161
        {"Cannot.restore.certchain.from.file.specified",
2432
dc17f417ef85 6802846: jarsigner needs enhanced cert validation(options)
weijun
parents: 2
diff changeset
   162
                "Cannot restore certchain from file specified"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   163
        {"Certificate.chain.not.found.in.the.file.specified.",
2432
dc17f417ef85 6802846: jarsigner needs enhanced cert validation(options)
weijun
parents: 2
diff changeset
   164
                "Certificate chain not found in the file specified."},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   165
        {"found.non.X.509.certificate.in.signer.s.chain",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
                "found non-X.509 certificate in signer's chain"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   167
        {"incomplete.certificate.chain", "incomplete certificate chain"},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   168
        {"Enter.key.password.for.alias.", "Enter key password for {0}: "},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   169
        {"unable.to.recover.key.from.keystore",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
                "unable to recover key from keystore"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   171
        {"key.associated.with.alias.not.a.private.key",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
                "key associated with {0} not a private key"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   173
        {"you.must.enter.key.password", "you must enter key password"},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   174
        {"unable.to.read.password.", "unable to read password: "},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   175
        {"certificate.is.valid.from", "certificate is valid from {0} to {1}"},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   176
        {"certificate.expired.on", "certificate expired on {0}"},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   177
        {"certificate.is.not.valid.until",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
                "certificate is not valid until {0}"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   179
        {"certificate.will.expire.on", "certificate will expire on {0}"},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   180
        {".CertPath.not.validated.", "[CertPath not validated: "},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   181
        {"requesting.a.signature.timestamp",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
                "requesting a signature timestamp"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   183
        {"TSA.location.", "TSA location: "},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   184
        {"TSA.certificate.", "TSA certificate: "},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   185
        {"no.response.from.the.Timestamping.Authority.",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
                "no response from the Timestamping Authority. "},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   187
        {"When.connecting.from.behind.a.firewall.then.an.HTTP.proxy.may.need.to.be.specified.",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
                "When connecting from behind a firewall then an HTTP proxy may need to be specified. "},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   189
        {"Supply.the.following.options.to.jarsigner.",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
                "Supply the following options to jarsigner: "},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   191
        {"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
   192
                "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
   193
        {"using.an.alternative.signing.mechanism",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
                "using an alternative signing mechanism"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   195
        {"entry.was.signed.on", "entry was signed on {0}"},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   196
        {"with.a.CRL.including.d.entries", "with a CRL including %d entries"},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   197
        {"Warning.", "Warning: "},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   198
        {"This.jar.contains.unsigned.entries.which.have.not.been.integrity.checked.",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
                "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
   200
        {"This.jar.contains.entries.whose.signer.certificate.has.expired.",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
                "This jar contains entries whose signer certificate has expired. "},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   202
        {"This.jar.contains.entries.whose.signer.certificate.will.expire.within.six.months.",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
                "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
   204
        {"This.jar.contains.entries.whose.signer.certificate.is.not.yet.valid.",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
                "This jar contains entries whose signer certificate is not yet valid. "},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   206
        {"Re.run.with.the.verbose.option.for.more.details.",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
                "Re-run with the -verbose option for more details."},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   208
        {"Re.run.with.the.verbose.and.certs.options.for.more.details.",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
                "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
   210
        {"The.signer.certificate.has.expired.",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
                "The signer certificate has expired."},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   212
        {"The.signer.certificate.will.expire.within.six.months.",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
                "The signer certificate will expire within six months."},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   214
        {"The.signer.certificate.is.not.yet.valid.",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
                "The signer certificate is not yet valid."},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   216
        {"The.signer.certificate.s.KeyUsage.extension.doesn.t.allow.code.signing.",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
                 "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
   218
        {"The.signer.certificate.s.ExtendedKeyUsage.extension.doesn.t.allow.code.signing.",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
                 "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
   220
        {"The.signer.certificate.s.NetscapeCertType.extension.doesn.t.allow.code.signing.",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
                 "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
   222
        {"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
   223
                 "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
   224
        {"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
   225
                 "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
   226
        {"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
   227
                 "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
   228
        {".{0}.extension.does.not.support.code.signing.",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
                 "[{0} extension does not support code signing]"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   230
        {"The.signer.s.certificate.chain.is.not.validated.",
2432
dc17f417ef85 6802846: jarsigner needs enhanced cert validation(options)
weijun
parents: 2
diff changeset
   231
                "The signer's certificate chain is not validated."},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   232
        {"This.jar.contains.entries.whose.certificate.chain.is.not.validated.",
2432
dc17f417ef85 6802846: jarsigner needs enhanced cert validation(options)
weijun
parents: 2
diff changeset
   233
                 "This jar contains entries whose certificate chain is not validated."},
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
    };
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
     * Returns the contents of this <code>ResourceBundle</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
     * @return the contents of this <code>ResourceBundle</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
    public Object[][] getContents() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
        return contents;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   245
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
}