< prev index next >

src/jdk.jartool/share/classes/sun/security/tools/jarsigner/Resources.java

Print this page
rev 15874 : 8163304: jarsigner -verbose -verify should print the algorithms used to sign the jar


 128         {"This.jar.contains.signed.entries.that.s.not.signed.by.alias.in.this.keystore.",
 129                   "This jar contains signed entries that are not signed by alias in this keystore."},
 130         {"s", "s"},
 131         {"m", "m"},
 132         {"k", "k"},
 133         {".and.d.more.", "(and %d more)"},
 134         {".s.signature.was.verified.",
 135                 "  s = signature was verified "},
 136         {".m.entry.is.listed.in.manifest",
 137                 "  m = entry is listed in manifest"},
 138         {".k.at.least.one.certificate.was.found.in.keystore",
 139                 "  k = at least one certificate was found in keystore"},
 140         {".X.not.signed.by.specified.alias.es.",
 141                 "  X = not signed by specified alias(es)"},
 142         {"no.manifest.", "no manifest."},
 143         {".Signature.related.entries.","(Signature related entries)"},
 144         {".Unsigned.entries.", "(Unsigned entries)"},
 145         {"jar.is.unsigned",
 146                 "jar is unsigned."},
 147         {"jar.treated.unsigned",
 148                 "Signature not parsable or verifiable. The jar will be treated as unsigned. The jar may have been signed with a weak algorithm that is now disabled. For more information, rerun jarsigner with debug enabled (-J-Djava.security.debug=jar)."},




 149         {"jar.signed.", "jar signed."},
 150         {"jar.signed.with.signer.errors.", "jar signed, with signer errors."},
 151         {"jar.verified.", "jar verified."},
 152         {"jar.verified.with.signer.errors.", "jar verified, with signer errors."},











 153         {"jarsigner.", "jarsigner: "},
 154         {"signature.filename.must.consist.of.the.following.characters.A.Z.0.9.or.",
 155                 "signature filename must consist of the following characters: A-Z, 0-9, _ or -"},
 156         {"unable.to.open.jar.file.", "unable to open jar file: "},
 157         {"unable.to.create.", "unable to create: "},
 158         {".adding.", "   adding: "},
 159         {".updating.", " updating: "},
 160         {".signing.", "  signing: "},
 161         {"attempt.to.rename.signedJarFile.to.jarFile.failed",
 162                 "attempt to rename {0} to {1} failed"},
 163         {"attempt.to.rename.jarFile.to.origJar.failed",
 164                 "attempt to rename {0} to {1} failed"},
 165         {"unable.to.sign.jar.", "unable to sign jar: "},
 166         {"Enter.Passphrase.for.keystore.", "Enter Passphrase for keystore: "},
 167         {"keystore.load.", "keystore load: "},
 168         {"certificate.exception.", "certificate exception: "},
 169         {"unable.to.instantiate.keystore.class.",
 170                 "unable to instantiate keystore class: "},
 171         {"Certificate.chain.not.found.for.alias.alias.must.reference.a.valid.KeyStore.key.entry.containing.a.private.key.and",
 172                 "Certificate chain not found for: {0}.  {1} must reference a valid KeyStore key entry containing a private key and corresponding public key certificate chain."},


 231         {"The.signer.certificate.s.KeyUsage.extension.doesn.t.allow.code.signing.",
 232                  "The signer certificate's KeyUsage extension doesn't allow code signing."},
 233         {"The.signer.certificate.s.ExtendedKeyUsage.extension.doesn.t.allow.code.signing.",
 234                  "The signer certificate's ExtendedKeyUsage extension doesn't allow code signing."},
 235         {"The.signer.certificate.s.NetscapeCertType.extension.doesn.t.allow.code.signing.",
 236                  "The signer certificate's NetscapeCertType extension doesn't allow code signing."},
 237         {"This.jar.contains.entries.whose.signer.certificate.s.KeyUsage.extension.doesn.t.allow.code.signing.",
 238                  "This jar contains entries whose signer certificate's KeyUsage extension doesn't allow code signing."},
 239         {"This.jar.contains.entries.whose.signer.certificate.s.ExtendedKeyUsage.extension.doesn.t.allow.code.signing.",
 240                  "This jar contains entries whose signer certificate's ExtendedKeyUsage extension doesn't allow code signing."},
 241         {"This.jar.contains.entries.whose.signer.certificate.s.NetscapeCertType.extension.doesn.t.allow.code.signing.",
 242                  "This jar contains entries whose signer certificate's NetscapeCertType extension doesn't allow code signing."},
 243         {".{0}.extension.does.not.support.code.signing.",
 244                  "[{0} extension does not support code signing]"},
 245         {"The.signer.s.certificate.chain.is.not.validated.reason.1",
 246                 "The signer's certificate chain is not validated. Reason: %s"},
 247         {"The.signer.s.certificate.is.self.signed.",
 248                 "The signer's certificate is self-signed."},
 249         {"The.1.algorithm.specified.for.the.2.option.is.considered.a.security.risk.",
 250                 "The %1$s algorithm specified for the %2$s option is considered a security risk."},


 251         {"This.jar.contains.entries.whose.certificate.chain.is.not.validated.reason.1",
 252                  "This jar contains entries whose certificate chain is not validated. Reason: %s"},
 253         {"no.timestamp.signing",
 254                 "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)."},
 255         {"no.timestamp.verifying",
 256                 "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)."},
 257         {"Unknown.password.type.", "Unknown password type: "},
 258         {"Cannot.find.environment.variable.",
 259                 "Cannot find environment variable: "},
 260         {"Cannot.find.file.", "Cannot find file: "},
 261     };
 262 
 263     /**
 264      * Returns the contents of this <code>ResourceBundle</code>.
 265      *
 266      * <p>
 267      *
 268      * @return the contents of this <code>ResourceBundle</code>.
 269      */
 270     @Override


 128         {"This.jar.contains.signed.entries.that.s.not.signed.by.alias.in.this.keystore.",
 129                   "This jar contains signed entries that are not signed by alias in this keystore."},
 130         {"s", "s"},
 131         {"m", "m"},
 132         {"k", "k"},
 133         {".and.d.more.", "(and %d more)"},
 134         {".s.signature.was.verified.",
 135                 "  s = signature was verified "},
 136         {".m.entry.is.listed.in.manifest",
 137                 "  m = entry is listed in manifest"},
 138         {".k.at.least.one.certificate.was.found.in.keystore",
 139                 "  k = at least one certificate was found in keystore"},
 140         {".X.not.signed.by.specified.alias.es.",
 141                 "  X = not signed by specified alias(es)"},
 142         {"no.manifest.", "no manifest."},
 143         {".Signature.related.entries.","(Signature related entries)"},
 144         {".Unsigned.entries.", "(Unsigned entries)"},
 145         {"jar.is.unsigned",
 146                 "jar is unsigned."},
 147         {"jar.treated.unsigned",
 148                 "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)."},
 149         {"jar.treated.unsigned.see.weak",
 150                 "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."},
 151         {"jar.treated.unsigned.see.weak.verbose",
 152                 "WARNING: The jar will be treated as unsigned, because it is signed with a weak algorithm that is now disabled by the security property:"},
 153         {"jar.signed.", "jar signed."},
 154         {"jar.signed.with.signer.errors.", "jar signed, with signer errors."},
 155         {"jar.verified.", "jar verified."},
 156         {"jar.verified.with.signer.errors.", "jar verified, with signer errors."},
 157 
 158         {"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"},
 159         {"history.without.ts", "- Signed by \"%1$s\"\n    Digest algorithm: %2$s\n    Signature algorithm: %3$s, %4$s"},
 160         {"history.unparsable", "- Unparsable signature-related file %s"},
 161         {"history.nosf", "- Missing signature-related file META-INF/%s.SF"},
 162         {"history.nobk", "- Missing block file for signature-related file META-INF/%s.SF"},
 163 
 164         {"with.weak", "%s (weak)"},
 165         {"key.bit", "%d-bit key"},
 166         {"key.bit.weak", "%d-bit key (weak)"},
 167 
 168         {"jarsigner.", "jarsigner: "},
 169         {"signature.filename.must.consist.of.the.following.characters.A.Z.0.9.or.",
 170                 "signature filename must consist of the following characters: A-Z, 0-9, _ or -"},
 171         {"unable.to.open.jar.file.", "unable to open jar file: "},
 172         {"unable.to.create.", "unable to create: "},
 173         {".adding.", "   adding: "},
 174         {".updating.", " updating: "},
 175         {".signing.", "  signing: "},
 176         {"attempt.to.rename.signedJarFile.to.jarFile.failed",
 177                 "attempt to rename {0} to {1} failed"},
 178         {"attempt.to.rename.jarFile.to.origJar.failed",
 179                 "attempt to rename {0} to {1} failed"},
 180         {"unable.to.sign.jar.", "unable to sign jar: "},
 181         {"Enter.Passphrase.for.keystore.", "Enter Passphrase for keystore: "},
 182         {"keystore.load.", "keystore load: "},
 183         {"certificate.exception.", "certificate exception: "},
 184         {"unable.to.instantiate.keystore.class.",
 185                 "unable to instantiate keystore class: "},
 186         {"Certificate.chain.not.found.for.alias.alias.must.reference.a.valid.KeyStore.key.entry.containing.a.private.key.and",
 187                 "Certificate chain not found for: {0}.  {1} must reference a valid KeyStore key entry containing a private key and corresponding public key certificate chain."},


 246         {"The.signer.certificate.s.KeyUsage.extension.doesn.t.allow.code.signing.",
 247                  "The signer certificate's KeyUsage extension doesn't allow code signing."},
 248         {"The.signer.certificate.s.ExtendedKeyUsage.extension.doesn.t.allow.code.signing.",
 249                  "The signer certificate's ExtendedKeyUsage extension doesn't allow code signing."},
 250         {"The.signer.certificate.s.NetscapeCertType.extension.doesn.t.allow.code.signing.",
 251                  "The signer certificate's NetscapeCertType extension doesn't allow code signing."},
 252         {"This.jar.contains.entries.whose.signer.certificate.s.KeyUsage.extension.doesn.t.allow.code.signing.",
 253                  "This jar contains entries whose signer certificate's KeyUsage extension doesn't allow code signing."},
 254         {"This.jar.contains.entries.whose.signer.certificate.s.ExtendedKeyUsage.extension.doesn.t.allow.code.signing.",
 255                  "This jar contains entries whose signer certificate's ExtendedKeyUsage extension doesn't allow code signing."},
 256         {"This.jar.contains.entries.whose.signer.certificate.s.NetscapeCertType.extension.doesn.t.allow.code.signing.",
 257                  "This jar contains entries whose signer certificate's NetscapeCertType extension doesn't allow code signing."},
 258         {".{0}.extension.does.not.support.code.signing.",
 259                  "[{0} extension does not support code signing]"},
 260         {"The.signer.s.certificate.chain.is.not.validated.reason.1",
 261                 "The signer's certificate chain is not validated. Reason: %s"},
 262         {"The.signer.s.certificate.is.self.signed.",
 263                 "The signer's certificate is self-signed."},
 264         {"The.1.algorithm.specified.for.the.2.option.is.considered.a.security.risk.",
 265                 "The %1$s algorithm specified for the %2$s option is considered a security risk."},
 266         {"The.1.signing.key.has.a.keysize.of.2.which.is.considered.a.security.risk.",
 267                 "The %s signing key has a keysize of %d which is considered a security risk."},
 268         {"This.jar.contains.entries.whose.certificate.chain.is.not.validated.reason.1",
 269                  "This jar contains entries whose certificate chain is not validated. Reason: %s"},
 270         {"no.timestamp.signing",
 271                 "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)."},
 272         {"no.timestamp.verifying",
 273                 "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)."},
 274         {"Unknown.password.type.", "Unknown password type: "},
 275         {"Cannot.find.environment.variable.",
 276                 "Cannot find environment variable: "},
 277         {"Cannot.find.file.", "Cannot find file: "},
 278     };
 279 
 280     /**
 281      * Returns the contents of this <code>ResourceBundle</code>.
 282      *
 283      * <p>
 284      *
 285      * @return the contents of this <code>ResourceBundle</code>.
 286      */
 287     @Override
< prev index next >