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