author | weijun |
Fri, 02 Oct 2009 18:49:46 +0800 | |
changeset 3951 | e821908c953e |
parent 3948 | 736156ecc24c |
child 4169 | 0ca7e3e74ba4 |
permissions | -rw-r--r-- |
2 | 1 |
/* |
2067
6f9db5f305cd
6780416: New keytool commands/options: -gencert, -printcertreq, -ext
weijun
parents:
909
diff
changeset
|
2 |
* Copyright 2000-2009 Sun Microsystems, Inc. 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 |
|
7 |
* published by the Free Software Foundation. Sun designates this |
|
8 |
* particular file as subject to the "Classpath" exception as provided |
|
9 |
* by Sun 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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, |
|
22 |
* CA 95054 USA or visit www.sun.com if you need additional information or |
|
23 |
* have any questions. |
|
24 |
*/ |
|
25 |
||
26 |
package sun.security.util; |
|
27 |
||
28 |
/** |
|
29 |
* <p> This class represents the <code>ResourceBundle</code> |
|
30 |
* for javax.security.auth and sun.security. |
|
31 |
* |
|
32 |
*/ |
|
33 |
public class Resources extends java.util.ListResourceBundle { |
|
34 |
||
35 |
private static final Object[][] contents = { |
|
36 |
||
37 |
// shared (from jarsigner) |
|
38 |
{" ", " "}, |
|
39 |
{" ", " "}, |
|
40 |
{" ", " "}, |
|
41 |
{", ", ", "}, |
|
42 |
// shared (from keytool) |
|
43 |
{"\n", "\n"}, |
|
44 |
{"*******************************************", |
|
45 |
"*******************************************"}, |
|
46 |
{"*******************************************\n\n", |
|
47 |
"*******************************************\n\n"}, |
|
48 |
||
3948 | 49 |
// keytool: Help part |
50 |
{" [OPTION]...", " [OPTION]..."}, |
|
51 |
{"Options:", "Options:"}, |
|
52 |
{"Use \"keytool -help\" for all available commands", |
|
53 |
"Use \"keytool -help\" for all available commands"}, |
|
54 |
{"Key and Certificate Management Tool", |
|
55 |
"Key and Certificate Management Tool"}, |
|
56 |
{"Commands:", "Commands:"}, |
|
57 |
{"Use \"keytool -command_name -help\" for usage of command_name", |
|
58 |
"Use \"keytool -command_name -help\" for usage of command_name"}, |
|
59 |
// keytool: help: commands |
|
60 |
{"Generates a certificate request", |
|
61 |
"Generates a certificate request"}, //-certreq |
|
62 |
{"Changes an entry's alias", |
|
63 |
"Changes an entry's alias"}, //-changealias |
|
64 |
{"Deletes an entry", |
|
65 |
"Deletes an entry"}, //-delete |
|
66 |
{"Exports certificate", |
|
67 |
"Exports certificate"}, //-exportcert |
|
68 |
{"Generates a key pair", |
|
69 |
"Generates a key pair"}, //-genkeypair |
|
70 |
{"Generates a secret key", |
|
71 |
"Generates a secret key"}, //-genseckey |
|
72 |
{"Generates certificate from a certificate request", |
|
73 |
"Generates certificate from a certificate request"}, //-gencert |
|
74 |
{"Imports entries from a JDK 1.1.x-style identity database", |
|
75 |
"Imports entries from a JDK 1.1.x-style identity database"}, //-identitydb |
|
76 |
{"Imports a certificate or a certificate chain", |
|
77 |
"Imports a certificate or a certificate chain"}, //-importcert |
|
78 |
{"Imports one or all entries from another keystore", |
|
79 |
"Imports one or all entries from another keystore"}, //-importkeystore |
|
80 |
{"Clones a key entry", |
|
81 |
"Clones a key entry"}, //-keyclone |
|
82 |
{"Changes the key password of an entry", |
|
83 |
"Changes the key password of an entry"}, //-keypasswd |
|
84 |
{"Lists entries in a keystore", |
|
85 |
"Lists entries in a keystore"}, //-list |
|
86 |
{"Prints the content of a certificate", |
|
87 |
"Prints the content of a certificate"}, //-printcert |
|
88 |
{"Prints the content of a certificate request", |
|
89 |
"Prints the content of a certificate request"}, //-printcertreq |
|
90 |
{"Generates a self-signed certificate", |
|
91 |
"Generates a self-signed certificate"}, //-selfcert |
|
92 |
{"Changes the store password of a keystore", |
|
93 |
"Changes the store password of a keystore"}, //-storepasswd |
|
94 |
// keytool: help: options |
|
95 |
{"alias name of the entry to process", |
|
96 |
"alias name of the entry to process"}, //-alias |
|
97 |
{"destination alias", |
|
98 |
"destination alias"}, //-destalias |
|
99 |
{"destination key password", |
|
100 |
"destination key password"}, //-destkeypass |
|
101 |
{"destination keystore name", |
|
102 |
"destination keystore name"}, //-destkeystore |
|
103 |
{"destination keystore password protected", |
|
104 |
"destination keystore password protected"}, //-destprotected |
|
105 |
{"destination keystore provider name", |
|
106 |
"destination keystore provider name"}, //-destprovidername |
|
107 |
{"destination keystore password", |
|
108 |
"destination keystore password"}, //-deststorepass |
|
109 |
{"destination keystore type", |
|
110 |
"destination keystore type"}, //-deststoretype |
|
111 |
{"distinguished name", |
|
112 |
"distinguished name"}, //-dname |
|
113 |
{"X.509 extension", |
|
114 |
"X.509 extension"}, //-ext |
|
115 |
{"output file name", |
|
116 |
"output file name"}, //-file |
|
117 |
{"input file name", |
|
118 |
"input file name"}, //-file |
|
119 |
{"input file name", |
|
120 |
"input file name"}, //-infile |
|
121 |
{"key algorithm name", |
|
122 |
"key algorithm name"}, //-keyalg |
|
123 |
{"key password", |
|
124 |
"key password"}, //-keypass |
|
125 |
{"key bit size", |
|
126 |
"key bit size"}, //-keysize |
|
127 |
{"keystore name", |
|
128 |
"keystore name"}, //-keystore |
|
129 |
{"new password", |
|
130 |
"new password"}, //-new |
|
131 |
{"do not prompt", |
|
132 |
"do not prompt"}, //-noprompt |
|
133 |
{"output file name", |
|
134 |
"output file name"}, //-outfile |
|
135 |
{"password through protected mechanism", |
|
136 |
"password through protected mechanism"}, //-protected |
|
137 |
{"provider argument", |
|
138 |
"provider argument"}, //-providerarg |
|
139 |
{"provider class name", |
|
140 |
"provider class name"}, //-providerclass |
|
141 |
{"provider name", |
|
142 |
"provider name"}, //-providername |
|
143 |
{"provider classpath", |
|
144 |
"provider classpath"}, //-providerpath |
|
145 |
{"output in RFC style", |
|
146 |
"output in RFC style"}, //-rfc |
|
147 |
{"signature algorithm name", |
|
148 |
"signature algorithm name"}, //-sigalg |
|
149 |
{"source alias", |
|
150 |
"source alias"}, //-srcalias |
|
151 |
{"source keystore password", |
|
152 |
"source keystore password"}, //-srckeypass |
|
153 |
{"source keystore name", |
|
154 |
"source keystore name"}, //-srckeystore |
|
155 |
{"source keystore password protected", |
|
156 |
"source keystore password protected"}, //-srcprotected |
|
157 |
{"source keystore provider name", |
|
158 |
"source keystore provider name"}, //-srcprovidername |
|
159 |
{"source keystore password", |
|
160 |
"source keystore password"}, //-srcstorepass |
|
161 |
{"source keystore type", |
|
162 |
"source keystore type"}, //-srcstoretype |
|
163 |
{"SSL server host and port", |
|
164 |
"SSL server host and port"}, //-sslserver |
|
165 |
{"certificate validity start date/time", |
|
166 |
"certificate validity start date/time"}, //-startdate |
|
167 |
{"keystore password", |
|
168 |
"keystore password"}, //-storepass |
|
169 |
{"keystore type", |
|
170 |
"keystore type"}, //-storetype |
|
171 |
{"trust certificates from cacerts", |
|
172 |
"trust certificates from cacerts"}, //-trustcacerts |
|
173 |
{"verbose output", |
|
174 |
"verbose output"}, //-v |
|
175 |
{"validity number of days", |
|
176 |
"validity number of days"}, //-validity |
|
177 |
// keytool: Running part |
|
2 | 178 |
{"keytool error: ", "keytool error: "}, |
179 |
{"Illegal option: ", "Illegal option: "}, |
|
2067
6f9db5f305cd
6780416: New keytool commands/options: -gencert, -printcertreq, -ext
weijun
parents:
909
diff
changeset
|
180 |
{"Illegal value: ", "Illegal value: "}, |
3951
e821908c953e
6868579: RFE: jarsigner to support reading password from environment variable
weijun
parents:
3948
diff
changeset
|
181 |
{"Unknown password type: ", "Unknown password type: "}, |
e821908c953e
6868579: RFE: jarsigner to support reading password from environment variable
weijun
parents:
3948
diff
changeset
|
182 |
{"Cannot find environment variable: ", |
e821908c953e
6868579: RFE: jarsigner to support reading password from environment variable
weijun
parents:
3948
diff
changeset
|
183 |
"Cannot find environment variable: "}, |
e821908c953e
6868579: RFE: jarsigner to support reading password from environment variable
weijun
parents:
3948
diff
changeset
|
184 |
{"Cannot find file: ", "Cannot find file: "}, |
2 | 185 |
{"Command option <flag> needs an argument.", "Command option {0} needs an argument."}, |
186 |
{"Warning: Different store and key passwords not supported for PKCS12 KeyStores. Ignoring user-specified <command> value.", |
|
187 |
"Warning: Different store and key passwords not supported for PKCS12 KeyStores. Ignoring user-specified {0} value."}, |
|
188 |
{"-keystore must be NONE if -storetype is {0}", |
|
189 |
"-keystore must be NONE if -storetype is {0}"}, |
|
3948 | 190 |
{"Too many retries, program terminated", |
191 |
"Too many retries, program terminated"}, |
|
2 | 192 |
{"-storepasswd and -keypasswd commands not supported if -storetype is {0}", |
193 |
"-storepasswd and -keypasswd commands not supported if -storetype is {0}"}, |
|
194 |
{"-keypasswd commands not supported if -storetype is PKCS12", |
|
195 |
"-keypasswd commands not supported if -storetype is PKCS12"}, |
|
196 |
{"-keypass and -new can not be specified if -storetype is {0}", |
|
197 |
"-keypass and -new can not be specified if -storetype is {0}"}, |
|
198 |
{"if -protected is specified, then -storepass, -keypass, and -new must not be specified", |
|
199 |
"if -protected is specified, then -storepass, -keypass, and -new must not be specified"}, |
|
200 |
{"if -srcprotected is specified, then -srcstorepass and -srckeypass must not be specified", |
|
201 |
"if -srcprotected is specified, then -srcstorepass and -srckeypass must not be specified"}, |
|
202 |
{"if keystore is not password protected, then -storepass, -keypass, and -new must not be specified", |
|
203 |
"if keystore is not password protected, then -storepass, -keypass, and -new must not be specified"}, |
|
204 |
{"if source keystore is not password protected, then -srcstorepass and -srckeypass must not be specified", |
|
205 |
"if source keystore is not password protected, then -srcstorepass and -srckeypass must not be specified"}, |
|
206 |
{"Illegal startdate value", "Illegal startdate value"}, |
|
207 |
{"Validity must be greater than zero", |
|
208 |
"Validity must be greater than zero"}, |
|
209 |
{"provName not a provider", "{0} not a provider"}, |
|
210 |
{"Usage error: no command provided", "Usage error: no command provided"}, |
|
211 |
{"Source keystore file exists, but is empty: ", "Source keystore file exists, but is empty: "}, |
|
212 |
{"Please specify -srckeystore", "Please specify -srckeystore"}, |
|
213 |
{"Must not specify both -v and -rfc with 'list' command", |
|
214 |
"Must not specify both -v and -rfc with 'list' command"}, |
|
215 |
{"Key password must be at least 6 characters", |
|
216 |
"Key password must be at least 6 characters"}, |
|
217 |
{"New password must be at least 6 characters", |
|
218 |
"New password must be at least 6 characters"}, |
|
219 |
{"Keystore file exists, but is empty: ", |
|
220 |
"Keystore file exists, but is empty: "}, |
|
221 |
{"Keystore file does not exist: ", |
|
222 |
"Keystore file does not exist: "}, |
|
223 |
{"Must specify destination alias", "Must specify destination alias"}, |
|
224 |
{"Must specify alias", "Must specify alias"}, |
|
225 |
{"Keystore password must be at least 6 characters", |
|
226 |
"Keystore password must be at least 6 characters"}, |
|
227 |
{"Enter keystore password: ", "Enter keystore password: "}, |
|
228 |
{"Enter source keystore password: ", "Enter source keystore password: "}, |
|
229 |
{"Enter destination keystore password: ", "Enter destination keystore password: "}, |
|
230 |
{"Keystore password is too short - must be at least 6 characters", |
|
231 |
"Keystore password is too short - must be at least 6 characters"}, |
|
232 |
{"Unknown Entry Type", "Unknown Entry Type"}, |
|
233 |
{"Too many failures. Alias not changed", "Too many failures. Alias not changed"}, |
|
234 |
{"Entry for alias <alias> successfully imported.", |
|
235 |
"Entry for alias {0} successfully imported."}, |
|
236 |
{"Entry for alias <alias> not imported.", "Entry for alias {0} not imported."}, |
|
237 |
{"Problem importing entry for alias <alias>: <exception>.\nEntry for alias <alias> not imported.", |
|
238 |
"Problem importing entry for alias {0}: {1}.\nEntry for alias {0} not imported."}, |
|
239 |
{"Import command completed: <ok> entries successfully imported, <fail> entries failed or cancelled", |
|
240 |
"Import command completed: {0} entries successfully imported, {1} entries failed or cancelled"}, |
|
241 |
{"Warning: Overwriting existing alias <alias> in destination keystore", |
|
242 |
"Warning: Overwriting existing alias {0} in destination keystore"}, |
|
243 |
{"Existing entry alias <alias> exists, overwrite? [no]: ", |
|
244 |
"Existing entry alias {0} exists, overwrite? [no]: "}, |
|
245 |
{"Too many failures - try later", "Too many failures - try later"}, |
|
246 |
{"Certification request stored in file <filename>", |
|
247 |
"Certification request stored in file <{0}>"}, |
|
248 |
{"Submit this to your CA", "Submit this to your CA"}, |
|
249 |
{"if alias not specified, destalias, srckeypass, and destkeypass must not be specified", |
|
250 |
"if alias not specified, destalias, srckeypass, and destkeypass must not be specified"}, |
|
251 |
{"Certificate stored in file <filename>", |
|
252 |
"Certificate stored in file <{0}>"}, |
|
253 |
{"Certificate reply was installed in keystore", |
|
254 |
"Certificate reply was installed in keystore"}, |
|
255 |
{"Certificate reply was not installed in keystore", |
|
256 |
"Certificate reply was not installed in keystore"}, |
|
257 |
{"Certificate was added to keystore", |
|
258 |
"Certificate was added to keystore"}, |
|
259 |
{"Certificate was not added to keystore", |
|
260 |
"Certificate was not added to keystore"}, |
|
261 |
{"[Storing ksfname]", "[Storing {0}]"}, |
|
262 |
{"alias has no public key (certificate)", |
|
263 |
"{0} has no public key (certificate)"}, |
|
264 |
{"Cannot derive signature algorithm", |
|
265 |
"Cannot derive signature algorithm"}, |
|
266 |
{"Alias <alias> does not exist", |
|
267 |
"Alias <{0}> does not exist"}, |
|
268 |
{"Alias <alias> has no certificate", |
|
269 |
"Alias <{0}> has no certificate"}, |
|
270 |
{"Key pair not generated, alias <alias> already exists", |
|
271 |
"Key pair not generated, alias <{0}> already exists"}, |
|
272 |
{"Cannot derive signature algorithm", |
|
273 |
"Cannot derive signature algorithm"}, |
|
274 |
{"Generating keysize bit keyAlgName key pair and self-signed certificate (sigAlgName) with a validity of validality days\n\tfor: x500Name", |
|
275 |
"Generating {0} bit {1} key pair and self-signed certificate ({2}) with a validity of {3} days\n\tfor: {4}"}, |
|
276 |
{"Enter key password for <alias>", "Enter key password for <{0}>"}, |
|
277 |
{"\t(RETURN if same as keystore password): ", |
|
278 |
"\t(RETURN if same as keystore password): "}, |
|
279 |
{"Key password is too short - must be at least 6 characters", |
|
280 |
"Key password is too short - must be at least 6 characters"}, |
|
281 |
{"Too many failures - key not added to keystore", |
|
282 |
"Too many failures - key not added to keystore"}, |
|
283 |
{"Destination alias <dest> already exists", |
|
284 |
"Destination alias <{0}> already exists"}, |
|
285 |
{"Password is too short - must be at least 6 characters", |
|
286 |
"Password is too short - must be at least 6 characters"}, |
|
287 |
{"Too many failures. Key entry not cloned", |
|
288 |
"Too many failures. Key entry not cloned"}, |
|
289 |
{"key password for <alias>", "key password for <{0}>"}, |
|
290 |
{"Keystore entry for <id.getName()> already exists", |
|
291 |
"Keystore entry for <{0}> already exists"}, |
|
292 |
{"Creating keystore entry for <id.getName()> ...", |
|
293 |
"Creating keystore entry for <{0}> ..."}, |
|
294 |
{"No entries from identity database added", |
|
295 |
"No entries from identity database added"}, |
|
296 |
{"Alias name: alias", "Alias name: {0}"}, |
|
297 |
{"Creation date: keyStore.getCreationDate(alias)", |
|
298 |
"Creation date: {0,date}"}, |
|
299 |
{"alias, keyStore.getCreationDate(alias), ", |
|
300 |
"{0}, {1,date}, "}, |
|
301 |
{"alias, ", "{0}, "}, |
|
302 |
{"Entry type: <type>", "Entry type: {0}"}, |
|
303 |
{"Certificate chain length: ", "Certificate chain length: "}, |
|
304 |
{"Certificate[(i + 1)]:", "Certificate[{0,number,integer}]:"}, |
|
909
c7bb1699d1b0
6709758: keytool default cert fingerprint algorithm should be SHA1, not MD5
weijun
parents:
904
diff
changeset
|
305 |
{"Certificate fingerprint (SHA1): ", "Certificate fingerprint (SHA1): "}, |
2 | 306 |
{"Entry type: trustedCertEntry\n", "Entry type: trustedCertEntry\n"}, |
307 |
{"trustedCertEntry,", "trustedCertEntry,"}, |
|
308 |
{"Keystore type: ", "Keystore type: "}, |
|
309 |
{"Keystore provider: ", "Keystore provider: "}, |
|
310 |
{"Your keystore contains keyStore.size() entry", |
|
311 |
"Your keystore contains {0,number,integer} entry"}, |
|
312 |
{"Your keystore contains keyStore.size() entries", |
|
313 |
"Your keystore contains {0,number,integer} entries"}, |
|
314 |
{"Failed to parse input", "Failed to parse input"}, |
|
315 |
{"Empty input", "Empty input"}, |
|
316 |
{"Not X.509 certificate", "Not X.509 certificate"}, |
|
317 |
{"Cannot derive signature algorithm", |
|
318 |
"Cannot derive signature algorithm"}, |
|
319 |
{"alias has no public key", "{0} has no public key"}, |
|
320 |
{"alias has no X.509 certificate", "{0} has no X.509 certificate"}, |
|
321 |
{"New certificate (self-signed):", "New certificate (self-signed):"}, |
|
322 |
{"Reply has no certificates", "Reply has no certificates"}, |
|
323 |
{"Certificate not imported, alias <alias> already exists", |
|
324 |
"Certificate not imported, alias <{0}> already exists"}, |
|
325 |
{"Input not an X.509 certificate", "Input not an X.509 certificate"}, |
|
326 |
{"Certificate already exists in keystore under alias <trustalias>", |
|
327 |
"Certificate already exists in keystore under alias <{0}>"}, |
|
328 |
{"Do you still want to add it? [no]: ", |
|
329 |
"Do you still want to add it? [no]: "}, |
|
330 |
{"Certificate already exists in system-wide CA keystore under alias <trustalias>", |
|
331 |
"Certificate already exists in system-wide CA keystore under alias <{0}>"}, |
|
332 |
{"Do you still want to add it to your own keystore? [no]: ", |
|
333 |
"Do you still want to add it to your own keystore? [no]: "}, |
|
334 |
{"Trust this certificate? [no]: ", "Trust this certificate? [no]: "}, |
|
335 |
{"YES", "YES"}, |
|
336 |
{"New prompt: ", "New {0}: "}, |
|
337 |
{"Passwords must differ", "Passwords must differ"}, |
|
338 |
{"Re-enter new prompt: ", "Re-enter new {0}: "}, |
|
339 |
{"Re-enter new password: ", "Re-enter new password: "}, |
|
340 |
{"They don't match. Try again", "They don't match. Try again"}, |
|
341 |
{"Enter prompt alias name: ", "Enter {0} alias name: "}, |
|
342 |
{"Enter new alias name\t(RETURN to cancel import for this entry): ", |
|
343 |
"Enter new alias name\t(RETURN to cancel import for this entry): "}, |
|
344 |
{"Enter alias name: ", "Enter alias name: "}, |
|
345 |
{"\t(RETURN if same as for <otherAlias>)", |
|
346 |
"\t(RETURN if same as for <{0}>)"}, |
|
347 |
{"*PATTERN* printX509Cert", |
|
3318
dade78e63c92
6561126: keytool should use larger default keysize for keypairs
weijun
parents:
3316
diff
changeset
|
348 |
"Owner: {0}\nIssuer: {1}\nSerial number: {2}\nValid from: {3} until: {4}\nCertificate fingerprints:\n\t MD5: {5}\n\t SHA1: {6}\n\t SHA256: {7}\n\t Signature algorithm name: {8}\n\t Version: {9}"}, |
2 | 349 |
{"What is your first and last name?", |
350 |
"What is your first and last name?"}, |
|
351 |
{"What is the name of your organizational unit?", |
|
352 |
"What is the name of your organizational unit?"}, |
|
353 |
{"What is the name of your organization?", |
|
354 |
"What is the name of your organization?"}, |
|
355 |
{"What is the name of your City or Locality?", |
|
356 |
"What is the name of your City or Locality?"}, |
|
357 |
{"What is the name of your State or Province?", |
|
358 |
"What is the name of your State or Province?"}, |
|
359 |
{"What is the two-letter country code for this unit?", |
|
360 |
"What is the two-letter country code for this unit?"}, |
|
361 |
{"Is <name> correct?", "Is {0} correct?"}, |
|
362 |
{"no", "no"}, |
|
363 |
{"yes", "yes"}, |
|
364 |
{"y", "y"}, |
|
365 |
{" [defaultValue]: ", " [{0}]: "}, |
|
366 |
{"Alias <alias> has no key", |
|
367 |
"Alias <{0}> has no key"}, |
|
368 |
{"Alias <alias> references an entry type that is not a private key entry. The -keyclone command only supports cloning of private key entries", |
|
369 |
"Alias <{0}> references an entry type that is not a private key entry. The -keyclone command only supports cloning of private key entries"}, |
|
370 |
||
371 |
{"***************** WARNING WARNING WARNING *****************", |
|
372 |
"***************** WARNING WARNING WARNING *****************"}, |
|
373 |
||
374 |
// Translators of the following 5 pairs, ATTENTION: |
|
375 |
// the next 5 string pairs are meant to be combined into 2 paragraphs, |
|
376 |
// 1+3+4 and 2+3+5. make sure your translation also does. |
|
377 |
{"* The integrity of the information stored in your keystore *", |
|
378 |
"* The integrity of the information stored in your keystore *"}, |
|
379 |
{"* The integrity of the information stored in the srckeystore*", |
|
380 |
"* The integrity of the information stored in the srckeystore*"}, |
|
381 |
{"* has NOT been verified! In order to verify its integrity, *", |
|
382 |
"* has NOT been verified! In order to verify its integrity, *"}, |
|
383 |
{"* you must provide your keystore password. *", |
|
384 |
"* you must provide your keystore password. *"}, |
|
385 |
{"* you must provide the srckeystore password. *", |
|
386 |
"* you must provide the srckeystore password. *"}, |
|
387 |
||
388 |
||
389 |
{"Certificate reply does not contain public key for <alias>", |
|
390 |
"Certificate reply does not contain public key for <{0}>"}, |
|
391 |
{"Incomplete certificate chain in reply", |
|
392 |
"Incomplete certificate chain in reply"}, |
|
393 |
{"Certificate chain in reply does not verify: ", |
|
394 |
"Certificate chain in reply does not verify: "}, |
|
395 |
{"Top-level certificate in reply:\n", |
|
396 |
"Top-level certificate in reply:\n"}, |
|
397 |
{"... is not trusted. ", "... is not trusted. "}, |
|
398 |
{"Install reply anyway? [no]: ", "Install reply anyway? [no]: "}, |
|
399 |
{"NO", "NO"}, |
|
400 |
{"Public keys in reply and keystore don't match", |
|
401 |
"Public keys in reply and keystore don't match"}, |
|
402 |
{"Certificate reply and certificate in keystore are identical", |
|
403 |
"Certificate reply and certificate in keystore are identical"}, |
|
404 |
{"Failed to establish chain from reply", |
|
405 |
"Failed to establish chain from reply"}, |
|
406 |
{"n", "n"}, |
|
407 |
{"Wrong answer, try again", "Wrong answer, try again"}, |
|
408 |
{"Secret key not generated, alias <alias> already exists", |
|
409 |
"Secret Key not generated, alias <{0}> already exists"}, |
|
410 |
{"Please provide -keysize for secret key generation", |
|
411 |
"Please provide -keysize for secret key generation"}, |
|
412 |
||
413 |
{"Extensions: ", "Extensions: "}, |
|
2067
6f9db5f305cd
6780416: New keytool commands/options: -gencert, -printcertreq, -ext
weijun
parents:
909
diff
changeset
|
414 |
{"(Empty value)", "(Empty value)"}, |
6f9db5f305cd
6780416: New keytool commands/options: -gencert, -printcertreq, -ext
weijun
parents:
909
diff
changeset
|
415 |
{"Extension Request:", "Extension Request:"}, |
6f9db5f305cd
6780416: New keytool commands/options: -gencert, -printcertreq, -ext
weijun
parents:
909
diff
changeset
|
416 |
{"PKCS #10 Certificate Request (Version 1.0)\n" + |
6f9db5f305cd
6780416: New keytool commands/options: -gencert, -printcertreq, -ext
weijun
parents:
909
diff
changeset
|
417 |
"Subject: %s\nPublic Key: %s format %s key\n", |
6f9db5f305cd
6780416: New keytool commands/options: -gencert, -printcertreq, -ext
weijun
parents:
909
diff
changeset
|
418 |
"PKCS #10 Certificate Request (Version 1.0)\n" + |
6f9db5f305cd
6780416: New keytool commands/options: -gencert, -printcertreq, -ext
weijun
parents:
909
diff
changeset
|
419 |
"Subject: %s\nPublic Key: %s format %s key\n"}, |
6f9db5f305cd
6780416: New keytool commands/options: -gencert, -printcertreq, -ext
weijun
parents:
909
diff
changeset
|
420 |
{"Unknown keyUsage type: ", "Unknown keyUsage type: "}, |
6f9db5f305cd
6780416: New keytool commands/options: -gencert, -printcertreq, -ext
weijun
parents:
909
diff
changeset
|
421 |
{"Unknown extendedkeyUsage type: ", "Unknown extendedkeyUsage type: "}, |
6f9db5f305cd
6780416: New keytool commands/options: -gencert, -printcertreq, -ext
weijun
parents:
909
diff
changeset
|
422 |
{"Unknown AccessDescription type: ", "Unknown AccessDescription type: "}, |
6f9db5f305cd
6780416: New keytool commands/options: -gencert, -printcertreq, -ext
weijun
parents:
909
diff
changeset
|
423 |
{"Unrecognized GeneralName type: ", "Unrecognized GeneralName type: "}, |
6f9db5f305cd
6780416: New keytool commands/options: -gencert, -printcertreq, -ext
weijun
parents:
909
diff
changeset
|
424 |
{"This extension cannot be marked as critical. ", |
6f9db5f305cd
6780416: New keytool commands/options: -gencert, -printcertreq, -ext
weijun
parents:
909
diff
changeset
|
425 |
"This extension cannot be marked as critical. "}, |
6f9db5f305cd
6780416: New keytool commands/options: -gencert, -printcertreq, -ext
weijun
parents:
909
diff
changeset
|
426 |
{"Odd number of hex digits found: ", "Odd number of hex digits found: "}, |
6f9db5f305cd
6780416: New keytool commands/options: -gencert, -printcertreq, -ext
weijun
parents:
909
diff
changeset
|
427 |
{"command {0} is ambiguous:", "command {0} is ambiguous:"}, |
2 | 428 |
|
429 |
// policytool |
|
430 |
{"Warning: A public key for alias 'signers[i]' does not exist. Make sure a KeyStore is properly configured.", |
|
431 |
"Warning: A public key for alias {0} does not exist. Make sure a KeyStore is properly configured."}, |
|
432 |
{"Warning: Class not found: class", "Warning: Class not found: {0}"}, |
|
433 |
{"Warning: Invalid argument(s) for constructor: arg", |
|
434 |
"Warning: Invalid argument(s) for constructor: {0}"}, |
|
435 |
{"Illegal Principal Type: type", "Illegal Principal Type: {0}"}, |
|
436 |
{"Illegal option: option", "Illegal option: {0}"}, |
|
437 |
{"Usage: policytool [options]", "Usage: policytool [options]"}, |
|
438 |
{" [-file <file>] policy file location", |
|
439 |
" [-file <file>] policy file location"}, |
|
440 |
{"New", "New"}, |
|
441 |
{"Open", "Open"}, |
|
442 |
{"Save", "Save"}, |
|
443 |
{"Save As", "Save As"}, |
|
444 |
{"View Warning Log", "View Warning Log"}, |
|
445 |
{"Exit", "Exit"}, |
|
446 |
{"Add Policy Entry", "Add Policy Entry"}, |
|
447 |
{"Edit Policy Entry", "Edit Policy Entry"}, |
|
448 |
{"Remove Policy Entry", "Remove Policy Entry"}, |
|
449 |
{"Edit", "Edit"}, |
|
450 |
{"Retain", "Retain"}, |
|
451 |
||
452 |
{"Warning: File name may include escaped backslash characters. " + |
|
453 |
"It is not necessary to escape backslash characters " + |
|
454 |
"(the tool escapes characters as necessary when writing " + |
|
455 |
"the policy contents to the persistent store).\n\n" + |
|
456 |
"Click on Retain to retain the entered name, or click on " + |
|
457 |
"Edit to edit the name.", |
|
458 |
"Warning: File name may include escaped backslash characters. " + |
|
459 |
"It is not necessary to escape backslash characters " + |
|
460 |
"(the tool escapes characters as necessary when writing " + |
|
461 |
"the policy contents to the persistent store).\n\n" + |
|
462 |
"Click on Retain to retain the entered name, or click on " + |
|
463 |
"Edit to edit the name."}, |
|
464 |
||
465 |
{"Add Public Key Alias", "Add Public Key Alias"}, |
|
466 |
{"Remove Public Key Alias", "Remove Public Key Alias"}, |
|
467 |
{"File", "File"}, |
|
468 |
{"KeyStore", "KeyStore"}, |
|
469 |
{"Policy File:", "Policy File:"}, |
|
470 |
{"Could not open policy file: policyFile: e.toString()", |
|
471 |
"Could not open policy file: {0}: {1}"}, |
|
472 |
{"Policy Tool", "Policy Tool"}, |
|
473 |
{"Errors have occurred while opening the policy configuration. View the Warning Log for more information.", |
|
474 |
"Errors have occurred while opening the policy configuration. View the Warning Log for more information."}, |
|
475 |
{"Error", "Error"}, |
|
476 |
{"OK", "OK"}, |
|
477 |
{"Status", "Status"}, |
|
478 |
{"Warning", "Warning"}, |
|
479 |
{"Permission: ", |
|
480 |
"Permission: "}, |
|
481 |
{"Principal Type:", "Principal Type:"}, |
|
482 |
{"Principal Name:", "Principal Name:"}, |
|
483 |
{"Target Name: ", |
|
484 |
"Target Name: "}, |
|
485 |
{"Actions: ", |
|
486 |
"Actions: "}, |
|
487 |
{"OK to overwrite existing file filename?", |
|
488 |
"OK to overwrite existing file {0}?"}, |
|
489 |
{"Cancel", "Cancel"}, |
|
490 |
{"CodeBase:", "CodeBase:"}, |
|
491 |
{"SignedBy:", "SignedBy:"}, |
|
492 |
{"Add Principal", "Add Principal"}, |
|
493 |
{"Edit Principal", "Edit Principal"}, |
|
494 |
{"Remove Principal", "Remove Principal"}, |
|
495 |
{"Principals:", "Principals:"}, |
|
496 |
{" Add Permission", " Add Permission"}, |
|
497 |
{" Edit Permission", " Edit Permission"}, |
|
498 |
{"Remove Permission", "Remove Permission"}, |
|
499 |
{"Done", "Done"}, |
|
500 |
{"KeyStore URL:", "KeyStore URL:"}, |
|
501 |
{"KeyStore Type:", "KeyStore Type:"}, |
|
502 |
{"KeyStore Provider:", "KeyStore Provider:"}, |
|
503 |
{"KeyStore Password URL:", "KeyStore Password URL:"}, |
|
504 |
{"Principals", "Principals"}, |
|
505 |
{" Edit Principal:", " Edit Principal:"}, |
|
506 |
{" Add New Principal:", " Add New Principal:"}, |
|
507 |
{"Permissions", "Permissions"}, |
|
508 |
{" Edit Permission:", " Edit Permission:"}, |
|
509 |
{" Add New Permission:", " Add New Permission:"}, |
|
510 |
{"Signed By:", "Signed By:"}, |
|
511 |
{"Cannot Specify Principal with a Wildcard Class without a Wildcard Name", |
|
512 |
"Cannot Specify Principal with a Wildcard Class without a Wildcard Name"}, |
|
513 |
{"Cannot Specify Principal without a Name", |
|
514 |
"Cannot Specify Principal without a Name"}, |
|
515 |
{"Permission and Target Name must have a value", |
|
516 |
"Permission and Target Name must have a value"}, |
|
517 |
{"Remove this Policy Entry?", "Remove this Policy Entry?"}, |
|
518 |
{"Overwrite File", "Overwrite File"}, |
|
519 |
{"Policy successfully written to filename", |
|
520 |
"Policy successfully written to {0}"}, |
|
521 |
{"null filename", "null filename"}, |
|
522 |
{"Save changes?", "Save changes?"}, |
|
523 |
{"Yes", "Yes"}, |
|
524 |
{"No", "No"}, |
|
525 |
{"Policy Entry", "Policy Entry"}, |
|
526 |
{"Save Changes", "Save Changes"}, |
|
527 |
{"No Policy Entry selected", "No Policy Entry selected"}, |
|
528 |
{"Unable to open KeyStore: ex.toString()", |
|
529 |
"Unable to open KeyStore: {0}"}, |
|
530 |
{"No principal selected", "No principal selected"}, |
|
531 |
{"No permission selected", "No permission selected"}, |
|
532 |
{"name", "name"}, |
|
533 |
{"configuration type", "configuration type"}, |
|
534 |
{"environment variable name", "environment variable name"}, |
|
535 |
{"library name", "library name"}, |
|
536 |
{"package name", "package name"}, |
|
537 |
{"policy type", "policy type"}, |
|
538 |
{"property name", "property name"}, |
|
539 |
{"provider name", "provider name"}, |
|
540 |
{"Principal List", "Principal List"}, |
|
541 |
{"Permission List", "Permission List"}, |
|
542 |
{"Code Base", "Code Base"}, |
|
543 |
{"KeyStore U R L:", "KeyStore U R L:"}, |
|
544 |
{"KeyStore Password U R L:", "KeyStore Password U R L:"}, |
|
545 |
||
546 |
||
547 |
// javax.security.auth.PrivateCredentialPermission |
|
548 |
{"invalid null input(s)", "invalid null input(s)"}, |
|
549 |
{"actions can only be 'read'", "actions can only be 'read'"}, |
|
550 |
{"permission name [name] syntax invalid: ", |
|
551 |
"permission name [{0}] syntax invalid: "}, |
|
552 |
{"Credential Class not followed by a Principal Class and Name", |
|
553 |
"Credential Class not followed by a Principal Class and Name"}, |
|
554 |
{"Principal Class not followed by a Principal Name", |
|
555 |
"Principal Class not followed by a Principal Name"}, |
|
556 |
{"Principal Name must be surrounded by quotes", |
|
557 |
"Principal Name must be surrounded by quotes"}, |
|
558 |
{"Principal Name missing end quote", |
|
559 |
"Principal Name missing end quote"}, |
|
560 |
{"PrivateCredentialPermission Principal Class can not be a wildcard (*) value if Principal Name is not a wildcard (*) value", |
|
561 |
"PrivateCredentialPermission Principal Class can not be a wildcard (*) value if Principal Name is not a wildcard (*) value"}, |
|
562 |
{"CredOwner:\n\tPrincipal Class = class\n\tPrincipal Name = name", |
|
563 |
"CredOwner:\n\tPrincipal Class = {0}\n\tPrincipal Name = {1}"}, |
|
564 |
||
565 |
// javax.security.auth.x500 |
|
566 |
{"provided null name", "provided null name"}, |
|
567 |
{"provided null keyword map", "provided null keyword map"}, |
|
568 |
{"provided null OID map", "provided null OID map"}, |
|
569 |
||
570 |
// javax.security.auth.Subject |
|
571 |
{"invalid null AccessControlContext provided", |
|
572 |
"invalid null AccessControlContext provided"}, |
|
573 |
{"invalid null action provided", "invalid null action provided"}, |
|
574 |
{"invalid null Class provided", "invalid null Class provided"}, |
|
575 |
{"Subject:\n", "Subject:\n"}, |
|
576 |
{"\tPrincipal: ", "\tPrincipal: "}, |
|
577 |
{"\tPublic Credential: ", "\tPublic Credential: "}, |
|
578 |
{"\tPrivate Credentials inaccessible\n", |
|
579 |
"\tPrivate Credentials inaccessible\n"}, |
|
580 |
{"\tPrivate Credential: ", "\tPrivate Credential: "}, |
|
581 |
{"\tPrivate Credential inaccessible\n", |
|
582 |
"\tPrivate Credential inaccessible\n"}, |
|
583 |
{"Subject is read-only", "Subject is read-only"}, |
|
584 |
{"attempting to add an object which is not an instance of java.security.Principal to a Subject's Principal Set", |
|
585 |
"attempting to add an object which is not an instance of java.security.Principal to a Subject's Principal Set"}, |
|
586 |
{"attempting to add an object which is not an instance of class", |
|
587 |
"attempting to add an object which is not an instance of {0}"}, |
|
588 |
||
589 |
// javax.security.auth.login.AppConfigurationEntry |
|
590 |
{"LoginModuleControlFlag: ", "LoginModuleControlFlag: "}, |
|
591 |
||
592 |
// javax.security.auth.login.LoginContext |
|
593 |
{"Invalid null input: name", "Invalid null input: name"}, |
|
594 |
{"No LoginModules configured for name", |
|
595 |
"No LoginModules configured for {0}"}, |
|
596 |
{"invalid null Subject provided", "invalid null Subject provided"}, |
|
597 |
{"invalid null CallbackHandler provided", |
|
598 |
"invalid null CallbackHandler provided"}, |
|
599 |
{"null subject - logout called before login", |
|
600 |
"null subject - logout called before login"}, |
|
601 |
{"unable to instantiate LoginModule, module, because it does not provide a no-argument constructor", |
|
602 |
"unable to instantiate LoginModule, {0}, because it does not provide a no-argument constructor"}, |
|
603 |
{"unable to instantiate LoginModule", |
|
604 |
"unable to instantiate LoginModule"}, |
|
605 |
{"unable to instantiate LoginModule: ", |
|
606 |
"unable to instantiate LoginModule: "}, |
|
607 |
{"unable to find LoginModule class: ", |
|
608 |
"unable to find LoginModule class: "}, |
|
609 |
{"unable to access LoginModule: ", |
|
610 |
"unable to access LoginModule: "}, |
|
611 |
{"Login Failure: all modules ignored", |
|
612 |
"Login Failure: all modules ignored"}, |
|
613 |
||
614 |
// sun.security.provider.PolicyFile |
|
615 |
||
616 |
{"java.security.policy: error parsing policy:\n\tmessage", |
|
617 |
"java.security.policy: error parsing {0}:\n\t{1}"}, |
|
618 |
{"java.security.policy: error adding Permission, perm:\n\tmessage", |
|
619 |
"java.security.policy: error adding Permission, {0}:\n\t{1}"}, |
|
620 |
{"java.security.policy: error adding Entry:\n\tmessage", |
|
621 |
"java.security.policy: error adding Entry:\n\t{0}"}, |
|
622 |
{"alias name not provided (pe.name)", "alias name not provided ({0})"}, |
|
623 |
{"unable to perform substitution on alias, suffix", |
|
624 |
"unable to perform substitution on alias, {0}"}, |
|
625 |
{"substitution value, prefix, unsupported", |
|
626 |
"substitution value, {0}, unsupported"}, |
|
627 |
{"(", "("}, |
|
628 |
{")", ")"}, |
|
629 |
{"type can't be null","type can't be null"}, |
|
630 |
||
631 |
// sun.security.provider.PolicyParser |
|
632 |
{"keystorePasswordURL can not be specified without also specifying keystore", |
|
633 |
"keystorePasswordURL can not be specified without also specifying keystore"}, |
|
634 |
{"expected keystore type", "expected keystore type"}, |
|
635 |
{"expected keystore provider", "expected keystore provider"}, |
|
636 |
{"multiple Codebase expressions", |
|
637 |
"multiple Codebase expressions"}, |
|
638 |
{"multiple SignedBy expressions","multiple SignedBy expressions"}, |
|
639 |
{"SignedBy has empty alias","SignedBy has empty alias"}, |
|
640 |
{"can not specify Principal with a wildcard class without a wildcard name", |
|
641 |
"can not specify Principal with a wildcard class without a wildcard name"}, |
|
642 |
{"expected codeBase or SignedBy or Principal", |
|
643 |
"expected codeBase or SignedBy or Principal"}, |
|
644 |
{"expected permission entry", "expected permission entry"}, |
|
645 |
{"number ", "number "}, |
|
646 |
{"expected [expect], read [end of file]", |
|
647 |
"expected [{0}], read [end of file]"}, |
|
648 |
{"expected [;], read [end of file]", |
|
649 |
"expected [;], read [end of file]"}, |
|
650 |
{"line number: msg", "line {0}: {1}"}, |
|
651 |
{"line number: expected [expect], found [actual]", |
|
652 |
"line {0}: expected [{1}], found [{2}]"}, |
|
653 |
{"null principalClass or principalName", |
|
654 |
"null principalClass or principalName"}, |
|
655 |
||
656 |
// sun.security.pkcs11.SunPKCS11 |
|
657 |
{"PKCS11 Token [providerName] Password: ", |
|
658 |
"PKCS11 Token [{0}] Password: "}, |
|
659 |
||
660 |
/* --- DEPRECATED --- */ |
|
661 |
// javax.security.auth.Policy |
|
662 |
{"unable to instantiate Subject-based policy", |
|
663 |
"unable to instantiate Subject-based policy"} |
|
664 |
}; |
|
665 |
||
666 |
||
667 |
/** |
|
668 |
* Returns the contents of this <code>ResourceBundle</code>. |
|
669 |
* |
|
670 |
* <p> |
|
671 |
* |
|
672 |
* @return the contents of this <code>ResourceBundle</code>. |
|
673 |
*/ |
|
674 |
public Object[][] getContents() { |
|
675 |
return contents; |
|
676 |
} |
|
677 |
} |
|
3948 | 678 |