1 /* 2 * Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * This code is free software; you can redistribute it and/or modify it 6 * under the terms of the GNU General Public License version 2 only, as 7 * published by the Free Software Foundation. Oracle designates this 8 * particular file as subject to the "Classpath" exception as provided 9 * by Oracle in the LICENSE file that accompanied this code. 10 * 11 * This code is distributed in the hope that it will be useful, but WITHOUT 12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 * version 2 for more details (a copy is included in the LICENSE file that 15 * accompanied this code). 16 * 17 * You should have received a copy of the GNU General Public License version 18 * 2 along with this work; if not, write to the Free Software Foundation, 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 * 21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 * or visit www.oracle.com if you need additional information or have any 23 * questions. 24 */ 25 26 package sun.security.tools.jarsigner; 27 28 /** 29 * <p> This class represents the <code>ResourceBundle</code> 30 * for JarSigner. 31 * 32 */ 33 public class Resources extends java.util.ListResourceBundle { 34 35 private static final Object[][] contents = { 36 37 // shared (from jarsigner) 38 {"SPACE", " "}, 39 {"2SPACE", " "}, 40 {"6SPACE", " "}, 41 {"COMMA", ", "}, 42 43 {"provName.not.a.provider", "{0} not a provider"}, 44 {"signerClass.is.not.a.signing.mechanism", "{0} is not a signing mechanism"}, 45 {"jarsigner.error.", "jarsigner error: "}, 46 {"Illegal.option.", "Illegal option: "}, 47 {"This.option.is.deprecated", "This option is deprecated: "}, 48 {".keystore.must.be.NONE.if.storetype.is.{0}", 49 "-keystore must be NONE if -storetype is {0}"}, 50 {".keypass.can.not.be.specified.if.storetype.is.{0}", 51 "-keypass can not be specified if -storetype is {0}"}, 52 {"If.protected.is.specified.then.storepass.and.keypass.must.not.be.specified", 53 "If -protected is specified, then -storepass and -keypass must not be specified"}, 54 {"If.keystore.is.not.password.protected.then.storepass.and.keypass.must.not.be.specified", 55 "If keystore is not password protected, then -storepass and -keypass must not be specified"}, 56 {"Usage.jarsigner.options.jar.file.alias", 57 "Usage: jarsigner [options] jar-file alias"}, 58 {".jarsigner.verify.options.jar.file.alias.", 59 " jarsigner -verify [options] jar-file [alias...]"}, 60 {".keystore.url.keystore.location", 61 "[-keystore <url>] keystore location"}, 62 {".storepass.password.password.for.keystore.integrity", 63 "[-storepass <password>] password for keystore integrity"}, 64 {".storetype.type.keystore.type", 65 "[-storetype <type>] keystore type"}, 66 {".keypass.password.password.for.private.key.if.different.", 67 "[-keypass <password>] password for private key (if different)"}, 68 {".certchain.file.name.of.alternative.certchain.file", 69 "[-certchain <file>] name of alternative certchain file"}, 70 {".sigfile.file.name.of.SF.DSA.file", 71 "[-sigfile <file>] name of .SF/.DSA file"}, 72 {".signedjar.file.name.of.signed.JAR.file", 73 "[-signedjar <file>] name of signed JAR file"}, 74 {".digestalg.algorithm.name.of.digest.algorithm", 75 "[-digestalg <algorithm>] name of digest algorithm"}, 76 {".sigalg.algorithm.name.of.signature.algorithm", 77 "[-sigalg <algorithm>] name of signature algorithm"}, 78 {".verify.verify.a.signed.JAR.file", 79 "[-verify] verify a signed JAR file"}, 80 {".verbose.suboptions.verbose.output.when.signing.verifying.", 81 "[-verbose[:suboptions]] verbose output when signing/verifying."}, 82 {".suboptions.can.be.all.grouped.or.summary", 83 " suboptions can be all, grouped or summary"}, 84 {".certs.display.certificates.when.verbose.and.verifying", 85 "[-certs] display certificates when verbose and verifying"}, 86 {".tsa.url.location.of.the.Timestamping.Authority", 87 "[-tsa <url>] location of the Timestamping Authority"}, 88 {".tsacert.alias.public.key.certificate.for.Timestamping.Authority", 89 "[-tsacert <alias>] public key certificate for Timestamping Authority"}, 90 {".tsapolicyid.tsapolicyid.for.Timestamping.Authority", 91 "[-tsapolicyid <oid>] TSAPolicyID for Timestamping Authority"}, 92 {".tsadigestalg.algorithm.of.digest.data.in.timestamping.request", 93 "[-tsadigestalg <algorithm>] algorithm of digest data in timestamping request"}, 94 {".altsigner.class.class.name.of.an.alternative.signing.mechanism", 95 "[-altsigner <class>] class name of an alternative signing mechanism\n" + 96 " (This option has been deprecated.)"}, 97 {".altsignerpath.pathlist.location.of.an.alternative.signing.mechanism", 98 "[-altsignerpath <pathlist>] location of an alternative signing mechanism\n" + 99 " (This option has been deprecated.)"}, 100 {".internalsf.include.the.SF.file.inside.the.signature.block", 101 "[-internalsf] include the .SF file inside the signature block"}, 102 {".sectionsonly.don.t.compute.hash.of.entire.manifest", 103 "[-sectionsonly] don't compute hash of entire manifest"}, 104 {".protected.keystore.has.protected.authentication.path", 105 "[-protected] keystore has protected authentication path"}, 106 {".providerName.name.provider.name", 107 "[-providerName <name>] provider name"}, 108 {".providerClass.class.name.of.cryptographic.service.provider.s", 109 "[-providerClass <class> name of cryptographic service provider's"}, 110 {".providerArg.arg.master.class.file.and.constructor.argument", 111 " [-providerArg <arg>]] ... master class file and constructor argument"}, 112 {".strict.treat.warnings.as.errors", 113 "[-strict] treat warnings as errors"}, 114 {".conf.url.specify.a.pre.configured.options.file", 115 "[-conf <url>] specify a pre-configured options file"}, 116 {"Option.lacks.argument", "Option lacks argument"}, 117 {"Please.type.jarsigner.help.for.usage", "Please type jarsigner -help for usage"}, 118 {"Please.specify.jarfile.name", "Please specify jarfile name"}, 119 {"Please.specify.alias.name", "Please specify alias name"}, 120 {"Only.one.alias.can.be.specified", "Only one alias can be specified"}, 121 {"This.jar.contains.signed.entries.which.is.not.signed.by.the.specified.alias.es.", 122 "This jar contains signed entries which are not signed by the specified alias(es)."}, 123 {"This.jar.contains.signed.entries.that.s.not.signed.by.alias.in.this.keystore.", 124 "This jar contains signed entries that are not signed by alias in this keystore."}, 125 {"s", "s"}, 126 {"m", "m"}, 127 {"k", "k"}, 128 {"i", "i"}, 129 {".and.d.more.", "(and %d more)"}, 130 {".s.signature.was.verified.", 131 " s = signature was verified "}, 132 {".m.entry.is.listed.in.manifest", 133 " m = entry is listed in manifest"}, 134 {".k.at.least.one.certificate.was.found.in.keystore", 135 " k = at least one certificate was found in keystore"}, 136 {".i.at.least.one.certificate.was.found.in.identity.scope", 137 " i = at least one certificate was found in identity scope"}, 138 {".X.not.signed.by.specified.alias.es.", 139 " X = not signed by specified alias(es)"}, 140 {"no.manifest.", "no manifest."}, 141 {".Signature.related.entries.","(Signature related entries)"}, 142 {".Unsigned.entries.", "(Unsigned entries)"}, 143 {"jar.is.unsigned.signatures.missing.or.not.parsable.", 144 "jar is unsigned. (signatures missing or not parsable)"}, 145 {"jar.signed.", "jar signed."}, 146 {"jar.signed.with.signer.errors.", "jar signed, with signer errors."}, 147 {"jar.verified.", "jar verified."}, 148 {"jar.verified.with.signer.errors.", "jar verified, with signer errors."}, 149 {"jarsigner.", "jarsigner: "}, 150 {"signature.filename.must.consist.of.the.following.characters.A.Z.0.9.or.", 151 "signature filename must consist of the following characters: A-Z, 0-9, _ or -"}, 152 {"unable.to.open.jar.file.", "unable to open jar file: "}, 153 {"unable.to.create.", "unable to create: "}, 154 {".adding.", " adding: "}, 155 {".updating.", " updating: "}, 156 {".signing.", " signing: "}, 157 {"attempt.to.rename.signedJarFile.to.jarFile.failed", 158 "attempt to rename {0} to {1} failed"}, 159 {"attempt.to.rename.jarFile.to.origJar.failed", 160 "attempt to rename {0} to {1} failed"}, 161 {"unable.to.sign.jar.", "unable to sign jar: "}, 162 {"Enter.Passphrase.for.keystore.", "Enter Passphrase for keystore: "}, 163 {"keystore.load.", "keystore load: "}, 164 {"certificate.exception.", "certificate exception: "}, 165 {"unable.to.instantiate.keystore.class.", 166 "unable to instantiate keystore class: "}, 167 {"Certificate.chain.not.found.for.alias.alias.must.reference.a.valid.KeyStore.key.entry.containing.a.private.key.and", 168 "Certificate chain not found for: {0}. {1} must reference a valid KeyStore key entry containing a private key and corresponding public key certificate chain."}, 169 {"File.specified.by.certchain.does.not.exist", 170 "File specified by -certchain does not exist"}, 171 {"Cannot.restore.certchain.from.file.specified", 172 "Cannot restore certchain from file specified"}, 173 {"Certificate.chain.not.found.in.the.file.specified.", 174 "Certificate chain not found in the file specified."}, 175 {"found.non.X.509.certificate.in.signer.s.chain", 176 "found non-X.509 certificate in signer's chain"}, 177 {"incomplete.certificate.chain", "incomplete certificate chain"}, 178 {"Enter.key.password.for.alias.", "Enter key password for {0}: "}, 179 {"unable.to.recover.key.from.keystore", 180 "unable to recover key from keystore"}, 181 {"key.associated.with.alias.not.a.private.key", 182 "key associated with {0} not a private key"}, 183 {"you.must.enter.key.password", "you must enter key password"}, 184 {"unable.to.read.password.", "unable to read password: "}, 185 {"certificate.is.valid.from", "certificate is valid from {0} to {1}"}, 186 {"certificate.expired.on", "certificate expired on {0}"}, 187 {"certificate.is.not.valid.until", 188 "certificate is not valid until {0}"}, 189 {"certificate.will.expire.on", "certificate will expire on {0}"}, 190 {".CertPath.not.validated.", "[CertPath not validated: "}, 191 {"requesting.a.signature.timestamp", 192 "requesting a signature timestamp"}, 193 {"TSA.location.", "TSA location: "}, 194 {"TSA.certificate.", "TSA certificate: "}, 195 {"no.response.from.the.Timestamping.Authority.", 196 "no response from the Timestamping Authority. When connecting" 197 + " from behind a firewall an HTTP or HTTPS proxy may need to" 198 + " be specified. Supply the following options to jarsigner:"}, 199 {"or", "or"}, 200 {"Certificate.not.found.for.alias.alias.must.reference.a.valid.KeyStore.entry.containing.an.X.509.public.key.certificate.for.the", 201 "Certificate not found for: {0}. {1} must reference a valid KeyStore entry containing an X.509 public key certificate for the Timestamping Authority."}, 202 {"using.an.alternative.signing.mechanism", 203 "using an alternative signing mechanism"}, 204 {"entry.was.signed.on", "entry was signed on {0}"}, 205 {"Warning.", "Warning: "}, 206 {"Error.", "Error: "}, 207 {"This.jar.contains.unsigned.entries.which.have.not.been.integrity.checked.", 208 "This jar contains unsigned entries which have not been integrity-checked. "}, 209 {"This.jar.contains.entries.whose.signer.certificate.has.expired.", 210 "This jar contains entries whose signer certificate has expired. "}, 211 {"This.jar.contains.entries.whose.signer.certificate.will.expire.within.six.months.", 212 "This jar contains entries whose signer certificate will expire within six months. "}, 213 {"This.jar.contains.entries.whose.signer.certificate.is.not.yet.valid.", 214 "This jar contains entries whose signer certificate is not yet valid. "}, 215 {"This.jar.contains.entries.whose.signer.certificate.is.self.signed.", 216 "This jar contains entries whose signer certificate is self-signed."}, 217 {"Re.run.with.the.verbose.option.for.more.details.", 218 "Re-run with the -verbose option for more details."}, 219 {"Re.run.with.the.verbose.and.certs.options.for.more.details.", 220 "Re-run with the -verbose and -certs options for more details."}, 221 {"The.signer.certificate.has.expired.", 222 "The signer certificate has expired."}, 223 {"The.signer.certificate.will.expire.within.six.months.", 224 "The signer certificate will expire within six months."}, 225 {"The.signer.certificate.is.not.yet.valid.", 226 "The signer certificate is not yet valid."}, 227 {"The.signer.certificate.s.KeyUsage.extension.doesn.t.allow.code.signing.", 228 "The signer certificate's KeyUsage extension doesn't allow code signing."}, 229 {"The.signer.certificate.s.ExtendedKeyUsage.extension.doesn.t.allow.code.signing.", 230 "The signer certificate's ExtendedKeyUsage extension doesn't allow code signing."}, 231 {"The.signer.certificate.s.NetscapeCertType.extension.doesn.t.allow.code.signing.", 232 "The signer certificate's NetscapeCertType extension doesn't allow code signing."}, 233 {"This.jar.contains.entries.whose.signer.certificate.s.KeyUsage.extension.doesn.t.allow.code.signing.", 234 "This jar contains entries whose signer certificate's KeyUsage extension doesn't allow code signing."}, 235 {"This.jar.contains.entries.whose.signer.certificate.s.ExtendedKeyUsage.extension.doesn.t.allow.code.signing.", 236 "This jar contains entries whose signer certificate's ExtendedKeyUsage extension doesn't allow code signing."}, 237 {"This.jar.contains.entries.whose.signer.certificate.s.NetscapeCertType.extension.doesn.t.allow.code.signing.", 238 "This jar contains entries whose signer certificate's NetscapeCertType extension doesn't allow code signing."}, 239 {".{0}.extension.does.not.support.code.signing.", 240 "[{0} extension does not support code signing]"}, 241 {"The.signer.s.certificate.chain.is.not.validated.reason.1", 242 "The signer's certificate chain is not validated. Reason: %s"}, 243 {"The.signer.s.certificate.is.self.signed.", 244 "The signer's certificate is self-signed."}, 245 {"The.1.algorithm.specified.for.the.2.option.is.considered.a.security.risk.", 246 "The %1$s algorithm specified for the %2$s option is considered a security risk."}, 247 {"This.jar.contains.entries.whose.certificate.chain.is.not.validated.reason.1", 248 "This jar contains entries whose certificate chain is not validated. Reason: %s"}, 249 {"no.timestamp.signing", 250 "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) or after any future revocation date."}, 251 {"no.timestamp.verifying", 252 "This jar contains signatures that does not include a timestamp. 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) or after any future revocation date."}, 253 {"Unknown.password.type.", "Unknown password type: "}, 254 {"Cannot.find.environment.variable.", 255 "Cannot find environment variable: "}, 256 {"Cannot.find.file.", "Cannot find file: "}, 257 }; 258 259 /** 260 * Returns the contents of this <code>ResourceBundle</code>. 261 * 262 * <p> 263 * 264 * @return the contents of this <code>ResourceBundle</code>. 265 */ 266 @Override 267 public Object[][] getContents() { 268 return contents; 269 } 270 }