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