Resources.java 37.3 KB
Newer Older
D
duke 已提交
1
/*
2
 * Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
D
duke 已提交
3 4 5 6
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 *
 * This code is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License version 2 only, as
7
 * published by the Free Software Foundation.  Oracle designates this
D
duke 已提交
8
 * particular file as subject to the "Classpath" exception as provided
9
 * by Oracle in the LICENSE file that accompanied this code.
D
duke 已提交
10 11 12 13 14 15 16 17 18 19 20
 *
 * This code is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 * version 2 for more details (a copy is included in the LICENSE file that
 * accompanied this code).
 *
 * You should have received a copy of the GNU General Public License version
 * 2 along with this work; if not, write to the Free Software Foundation,
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
 *
21 22 23
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
 * or visit www.oracle.com if you need additional information or have any
 * questions.
D
duke 已提交
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
 */

package sun.security.util;

/**
 * <p> This class represents the <code>ResourceBundle</code>
 * for javax.security.auth and sun.security.
 *
 */
public class Resources extends java.util.ListResourceBundle {

    private static final Object[][] contents = {

        // shared (from jarsigner)
        {" ", " "},
        {"  ", "  "},
        {"      ", "      "},
        {", ", ", "},
        // shared (from keytool)
        {"\n", "\n"},
        {"*******************************************",
                "*******************************************"},
        {"*******************************************\n\n",
                "*******************************************\n\n"},

W
weijun 已提交
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
        // keytool: Help part
        {" [OPTION]...", " [OPTION]..."},
        {"Options:", "Options:"},
        {"Use \"keytool -help\" for all available commands",
                 "Use \"keytool -help\" for all available commands"},
        {"Key and Certificate Management Tool",
                 "Key and Certificate Management Tool"},
        {"Commands:", "Commands:"},
        {"Use \"keytool -command_name -help\" for usage of command_name",
                "Use \"keytool -command_name -help\" for usage of command_name"},
        // keytool: help: commands
        {"Generates a certificate request",
                "Generates a certificate request"}, //-certreq
        {"Changes an entry's alias",
                "Changes an entry's alias"}, //-changealias
        {"Deletes an entry",
                "Deletes an entry"}, //-delete
        {"Exports certificate",
                "Exports certificate"}, //-exportcert
        {"Generates a key pair",
                "Generates a key pair"}, //-genkeypair
        {"Generates a secret key",
                "Generates a secret key"}, //-genseckey
        {"Generates certificate from a certificate request",
                "Generates certificate from a certificate request"}, //-gencert
74
        {"Generates CRL", "Generates CRL"}, //-gencrl
W
weijun 已提交
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90
        {"Imports entries from a JDK 1.1.x-style identity database",
                "Imports entries from a JDK 1.1.x-style identity database"}, //-identitydb
        {"Imports a certificate or a certificate chain",
                "Imports a certificate or a certificate chain"}, //-importcert
        {"Imports one or all entries from another keystore",
                "Imports one or all entries from another keystore"}, //-importkeystore
        {"Clones a key entry",
                "Clones a key entry"}, //-keyclone
        {"Changes the key password of an entry",
                "Changes the key password of an entry"}, //-keypasswd
        {"Lists entries in a keystore",
                "Lists entries in a keystore"}, //-list
        {"Prints the content of a certificate",
                "Prints the content of a certificate"}, //-printcert
        {"Prints the content of a certificate request",
                "Prints the content of a certificate request"}, //-printcertreq
91 92
        {"Prints the content of a CRL file",
                "Prints the content of a CRL file"}, //-printcrl
W
weijun 已提交
93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118
        {"Generates a self-signed certificate",
                "Generates a self-signed certificate"}, //-selfcert
        {"Changes the store password of a keystore",
                "Changes the store password of a keystore"}, //-storepasswd
        // keytool: help: options
        {"alias name of the entry to process",
                "alias name of the entry to process"}, //-alias
        {"destination alias",
                "destination alias"}, //-destalias
        {"destination key password",
                "destination key password"}, //-destkeypass
        {"destination keystore name",
                "destination keystore name"}, //-destkeystore
        {"destination keystore password protected",
                "destination keystore password protected"}, //-destprotected
        {"destination keystore provider name",
                "destination keystore provider name"}, //-destprovidername
        {"destination keystore password",
                "destination keystore password"}, //-deststorepass
        {"destination keystore type",
                "destination keystore type"}, //-deststoretype
        {"distinguished name",
                "distinguished name"}, //-dname
        {"X.509 extension",
                "X.509 extension"}, //-ext
        {"output file name",
119
                "output file name"}, //-file and -outfile
W
weijun 已提交
120
        {"input file name",
121
                "input file name"}, //-file and -infile
W
weijun 已提交
122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149
        {"key algorithm name",
                "key algorithm name"}, //-keyalg
        {"key password",
                "key password"}, //-keypass
        {"key bit size",
                "key bit size"}, //-keysize
        {"keystore name",
                "keystore name"}, //-keystore
        {"new password",
                "new password"}, //-new
        {"do not prompt",
                "do not prompt"}, //-noprompt
        {"password through protected mechanism",
                "password through protected mechanism"}, //-protected
        {"provider argument",
                "provider argument"}, //-providerarg
        {"provider class name",
                "provider class name"}, //-providerclass
        {"provider name",
                "provider name"}, //-providername
        {"provider classpath",
                "provider classpath"}, //-providerpath
        {"output in RFC style",
                "output in RFC style"}, //-rfc
        {"signature algorithm name",
                "signature algorithm name"}, //-sigalg
        {"source alias",
                "source alias"}, //-srcalias
150 151
        {"source key password",
                "source key password"}, //-srckeypass
W
weijun 已提交
152 153 154 155 156 157 158 159 160 161 162 163
        {"source keystore name",
                "source keystore name"}, //-srckeystore
        {"source keystore password protected",
                "source keystore password protected"}, //-srcprotected
        {"source keystore provider name",
                "source keystore provider name"}, //-srcprovidername
        {"source keystore password",
                "source keystore password"}, //-srcstorepass
        {"source keystore type",
                "source keystore type"}, //-srcstoretype
        {"SSL server host and port",
                "SSL server host and port"}, //-sslserver
164 165
        {"signed jar file",
                "signed jar file"}, //=jarfile
W
weijun 已提交
166 167 168 169 170 171 172 173 174 175 176 177
        {"certificate validity start date/time",
                "certificate validity start date/time"}, //-startdate
        {"keystore password",
                "keystore password"}, //-storepass
        {"keystore type",
                "keystore type"}, //-storetype
        {"trust certificates from cacerts",
                "trust certificates from cacerts"}, //-trustcacerts
        {"verbose output",
                "verbose output"}, //-v
        {"validity number of days",
                "validity number of days"}, //-validity
178 179
        {"Serial ID of cert to revoke",
                 "Serial ID of cert to revoke"}, //-id
W
weijun 已提交
180
        // keytool: Running part
D
duke 已提交
181 182
        {"keytool error: ", "keytool error: "},
        {"Illegal option:  ", "Illegal option:  "},
183
        {"Illegal value: ", "Illegal value: "},
184 185 186 187
        {"Unknown password type: ", "Unknown password type: "},
        {"Cannot find environment variable: ",
                "Cannot find environment variable: "},
        {"Cannot find file: ", "Cannot find file: "},
D
duke 已提交
188 189 190 191 192
        {"Command option <flag> needs an argument.", "Command option {0} needs an argument."},
        {"Warning:  Different store and key passwords not supported for PKCS12 KeyStores. Ignoring user-specified <command> value.",
                "Warning:  Different store and key passwords not supported for PKCS12 KeyStores. Ignoring user-specified {0} value."},
        {"-keystore must be NONE if -storetype is {0}",
                "-keystore must be NONE if -storetype is {0}"},
W
weijun 已提交
193 194
        {"Too many retries, program terminated",
                 "Too many retries, program terminated"},
D
duke 已提交
195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305
        {"-storepasswd and -keypasswd commands not supported if -storetype is {0}",
                "-storepasswd and -keypasswd commands not supported if -storetype is {0}"},
        {"-keypasswd commands not supported if -storetype is PKCS12",
                "-keypasswd commands not supported if -storetype is PKCS12"},
        {"-keypass and -new can not be specified if -storetype is {0}",
                "-keypass and -new can not be specified if -storetype is {0}"},
        {"if -protected is specified, then -storepass, -keypass, and -new must not be specified",
                "if -protected is specified, then -storepass, -keypass, and -new must not be specified"},
        {"if -srcprotected is specified, then -srcstorepass and -srckeypass must not be specified",
                "if -srcprotected is specified, then -srcstorepass and -srckeypass must not be specified"},
        {"if keystore is not password protected, then -storepass, -keypass, and -new must not be specified",
                "if keystore is not password protected, then -storepass, -keypass, and -new must not be specified"},
        {"if source keystore is not password protected, then -srcstorepass and -srckeypass must not be specified",
                "if source keystore is not password protected, then -srcstorepass and -srckeypass must not be specified"},
        {"Illegal startdate value", "Illegal startdate value"},
        {"Validity must be greater than zero",
                "Validity must be greater than zero"},
        {"provName not a provider", "{0} not a provider"},
        {"Usage error: no command provided", "Usage error: no command provided"},
        {"Source keystore file exists, but is empty: ", "Source keystore file exists, but is empty: "},
        {"Please specify -srckeystore", "Please specify -srckeystore"},
        {"Must not specify both -v and -rfc with 'list' command",
                "Must not specify both -v and -rfc with 'list' command"},
        {"Key password must be at least 6 characters",
                "Key password must be at least 6 characters"},
        {"New password must be at least 6 characters",
                "New password must be at least 6 characters"},
        {"Keystore file exists, but is empty: ",
                "Keystore file exists, but is empty: "},
        {"Keystore file does not exist: ",
                "Keystore file does not exist: "},
        {"Must specify destination alias", "Must specify destination alias"},
        {"Must specify alias", "Must specify alias"},
        {"Keystore password must be at least 6 characters",
                "Keystore password must be at least 6 characters"},
        {"Enter keystore password:  ", "Enter keystore password:  "},
        {"Enter source keystore password:  ", "Enter source keystore password:  "},
        {"Enter destination keystore password:  ", "Enter destination keystore password:  "},
        {"Keystore password is too short - must be at least 6 characters",
         "Keystore password is too short - must be at least 6 characters"},
        {"Unknown Entry Type", "Unknown Entry Type"},
        {"Too many failures. Alias not changed", "Too many failures. Alias not changed"},
        {"Entry for alias <alias> successfully imported.",
                 "Entry for alias {0} successfully imported."},
        {"Entry for alias <alias> not imported.", "Entry for alias {0} not imported."},
        {"Problem importing entry for alias <alias>: <exception>.\nEntry for alias <alias> not imported.",
                 "Problem importing entry for alias {0}: {1}.\nEntry for alias {0} not imported."},
        {"Import command completed:  <ok> entries successfully imported, <fail> entries failed or cancelled",
                 "Import command completed:  {0} entries successfully imported, {1} entries failed or cancelled"},
        {"Warning: Overwriting existing alias <alias> in destination keystore",
                 "Warning: Overwriting existing alias {0} in destination keystore"},
        {"Existing entry alias <alias> exists, overwrite? [no]:  ",
                 "Existing entry alias {0} exists, overwrite? [no]:  "},
        {"Too many failures - try later", "Too many failures - try later"},
        {"Certification request stored in file <filename>",
                "Certification request stored in file <{0}>"},
        {"Submit this to your CA", "Submit this to your CA"},
        {"if alias not specified, destalias, srckeypass, and destkeypass must not be specified",
            "if alias not specified, destalias, srckeypass, and destkeypass must not be specified"},
        {"Certificate stored in file <filename>",
                "Certificate stored in file <{0}>"},
        {"Certificate reply was installed in keystore",
                "Certificate reply was installed in keystore"},
        {"Certificate reply was not installed in keystore",
                "Certificate reply was not installed in keystore"},
        {"Certificate was added to keystore",
                "Certificate was added to keystore"},
        {"Certificate was not added to keystore",
                "Certificate was not added to keystore"},
        {"[Storing ksfname]", "[Storing {0}]"},
        {"alias has no public key (certificate)",
                "{0} has no public key (certificate)"},
        {"Cannot derive signature algorithm",
                "Cannot derive signature algorithm"},
        {"Alias <alias> does not exist",
                "Alias <{0}> does not exist"},
        {"Alias <alias> has no certificate",
                "Alias <{0}> has no certificate"},
        {"Key pair not generated, alias <alias> already exists",
                "Key pair not generated, alias <{0}> already exists"},
        {"Generating keysize bit keyAlgName key pair and self-signed certificate (sigAlgName) with a validity of validality days\n\tfor: x500Name",
                "Generating {0} bit {1} key pair and self-signed certificate ({2}) with a validity of {3} days\n\tfor: {4}"},
        {"Enter key password for <alias>", "Enter key password for <{0}>"},
        {"\t(RETURN if same as keystore password):  ",
                "\t(RETURN if same as keystore password):  "},
        {"Key password is too short - must be at least 6 characters",
                "Key password is too short - must be at least 6 characters"},
        {"Too many failures - key not added to keystore",
                "Too many failures - key not added to keystore"},
        {"Destination alias <dest> already exists",
                "Destination alias <{0}> already exists"},
        {"Password is too short - must be at least 6 characters",
                "Password is too short - must be at least 6 characters"},
        {"Too many failures. Key entry not cloned",
                "Too many failures. Key entry not cloned"},
        {"key password for <alias>", "key password for <{0}>"},
        {"Keystore entry for <id.getName()> already exists",
                "Keystore entry for <{0}> already exists"},
        {"Creating keystore entry for <id.getName()> ...",
                "Creating keystore entry for <{0}> ..."},
        {"No entries from identity database added",
                "No entries from identity database added"},
        {"Alias name: alias", "Alias name: {0}"},
        {"Creation date: keyStore.getCreationDate(alias)",
                "Creation date: {0,date}"},
        {"alias, keyStore.getCreationDate(alias), ",
                "{0}, {1,date}, "},
        {"alias, ", "{0}, "},
        {"Entry type: <type>", "Entry type: {0}"},
        {"Certificate chain length: ", "Certificate chain length: "},
        {"Certificate[(i + 1)]:", "Certificate[{0,number,integer}]:"},
306
        {"Certificate fingerprint (SHA1): ", "Certificate fingerprint (SHA1): "},
D
duke 已提交
307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346
        {"Entry type: trustedCertEntry\n", "Entry type: trustedCertEntry\n"},
        {"trustedCertEntry,", "trustedCertEntry,"},
        {"Keystore type: ", "Keystore type: "},
        {"Keystore provider: ", "Keystore provider: "},
        {"Your keystore contains keyStore.size() entry",
                "Your keystore contains {0,number,integer} entry"},
        {"Your keystore contains keyStore.size() entries",
                "Your keystore contains {0,number,integer} entries"},
        {"Failed to parse input", "Failed to parse input"},
        {"Empty input", "Empty input"},
        {"Not X.509 certificate", "Not X.509 certificate"},
        {"alias has no public key", "{0} has no public key"},
        {"alias has no X.509 certificate", "{0} has no X.509 certificate"},
        {"New certificate (self-signed):", "New certificate (self-signed):"},
        {"Reply has no certificates", "Reply has no certificates"},
        {"Certificate not imported, alias <alias> already exists",
                "Certificate not imported, alias <{0}> already exists"},
        {"Input not an X.509 certificate", "Input not an X.509 certificate"},
        {"Certificate already exists in keystore under alias <trustalias>",
                "Certificate already exists in keystore under alias <{0}>"},
        {"Do you still want to add it? [no]:  ",
                "Do you still want to add it? [no]:  "},
        {"Certificate already exists in system-wide CA keystore under alias <trustalias>",
                "Certificate already exists in system-wide CA keystore under alias <{0}>"},
        {"Do you still want to add it to your own keystore? [no]:  ",
                "Do you still want to add it to your own keystore? [no]:  "},
        {"Trust this certificate? [no]:  ", "Trust this certificate? [no]:  "},
        {"YES", "YES"},
        {"New prompt: ", "New {0}: "},
        {"Passwords must differ", "Passwords must differ"},
        {"Re-enter new prompt: ", "Re-enter new {0}: "},
        {"Re-enter new password: ", "Re-enter new password: "},
        {"They don't match. Try again", "They don't match. Try again"},
        {"Enter prompt alias name:  ", "Enter {0} alias name:  "},
        {"Enter new alias name\t(RETURN to cancel import for this entry):  ",
                 "Enter new alias name\t(RETURN to cancel import for this entry):  "},
        {"Enter alias name:  ", "Enter alias name:  "},
        {"\t(RETURN if same as for <otherAlias>)",
                "\t(RETURN if same as for <{0}>)"},
        {"*PATTERN* printX509Cert",
347
                "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}"},
D
duke 已提交
348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371
        {"What is your first and last name?",
                "What is your first and last name?"},
        {"What is the name of your organizational unit?",
                "What is the name of your organizational unit?"},
        {"What is the name of your organization?",
                "What is the name of your organization?"},
        {"What is the name of your City or Locality?",
                "What is the name of your City or Locality?"},
        {"What is the name of your State or Province?",
                "What is the name of your State or Province?"},
        {"What is the two-letter country code for this unit?",
                "What is the two-letter country code for this unit?"},
        {"Is <name> correct?", "Is {0} correct?"},
        {"no", "no"},
        {"yes", "yes"},
        {"y", "y"},
        {"  [defaultValue]:  ", "  [{0}]:  "},
        {"Alias <alias> has no key",
                "Alias <{0}> has no key"},
        {"Alias <alias> references an entry type that is not a private key entry.  The -keyclone command only supports cloning of private key entries",
                 "Alias <{0}> references an entry type that is not a private key entry.  The -keyclone command only supports cloning of private key entries"},

        {"*****************  WARNING WARNING WARNING  *****************",
            "*****************  WARNING WARNING WARNING  *****************"},
372 373 374
        {"Signer #%d:", "Signer #%d:"},
        {"Timestamp:", "Timestamp:"},
        {"Signature:", "Signature:"},
375
        {"CRLs:", "CRLs:"},
376 377 378 379
        {"Certificate owner: ", "Certificate owner: "},
        {"Not a signed jar file", "Not a signed jar file"},
        {"No certificate from the SSL server",
                "No certificate from the SSL server"},
D
duke 已提交
380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420

        // Translators of the following 5 pairs, ATTENTION:
        // the next 5 string pairs are meant to be combined into 2 paragraphs,
        // 1+3+4 and 2+3+5. make sure your translation also does.
        {"* The integrity of the information stored in your keystore  *",
            "* The integrity of the information stored in your keystore  *"},
        {"* The integrity of the information stored in the srckeystore*",
            "* The integrity of the information stored in the srckeystore*"},
        {"* has NOT been verified!  In order to verify its integrity, *",
            "* has NOT been verified!  In order to verify its integrity, *"},
        {"* you must provide your keystore password.                  *",
            "* you must provide your keystore password.                  *"},
        {"* you must provide the srckeystore password.                *",
            "* you must provide the srckeystore password.                *"},


        {"Certificate reply does not contain public key for <alias>",
                "Certificate reply does not contain public key for <{0}>"},
        {"Incomplete certificate chain in reply",
                "Incomplete certificate chain in reply"},
        {"Certificate chain in reply does not verify: ",
                "Certificate chain in reply does not verify: "},
        {"Top-level certificate in reply:\n",
                "Top-level certificate in reply:\n"},
        {"... is not trusted. ", "... is not trusted. "},
        {"Install reply anyway? [no]:  ", "Install reply anyway? [no]:  "},
        {"NO", "NO"},
        {"Public keys in reply and keystore don't match",
                "Public keys in reply and keystore don't match"},
        {"Certificate reply and certificate in keystore are identical",
                "Certificate reply and certificate in keystore are identical"},
        {"Failed to establish chain from reply",
                "Failed to establish chain from reply"},
        {"n", "n"},
        {"Wrong answer, try again", "Wrong answer, try again"},
        {"Secret key not generated, alias <alias> already exists",
                "Secret Key not generated, alias <{0}> already exists"},
        {"Please provide -keysize for secret key generation",
                "Please provide -keysize for secret key generation"},

        {"Extensions: ", "Extensions: "},
421 422 423 424 425 426 427 428 429 430 431 432 433
        {"(Empty value)", "(Empty value)"},
        {"Extension Request:", "Extension Request:"},
        {"PKCS #10 Certificate Request (Version 1.0)\n" +
                "Subject: %s\nPublic Key: %s format %s key\n",
                "PKCS #10 Certificate Request (Version 1.0)\n" +
                "Subject: %s\nPublic Key: %s format %s key\n"},
        {"Unknown keyUsage type: ", "Unknown keyUsage type: "},
        {"Unknown extendedkeyUsage type: ", "Unknown extendedkeyUsage type: "},
        {"Unknown AccessDescription type: ", "Unknown AccessDescription type: "},
        {"Unrecognized GeneralName type: ", "Unrecognized GeneralName type: "},
        {"This extension cannot be marked as critical. ",
                 "This extension cannot be marked as critical. "},
        {"Odd number of hex digits found: ", "Odd number of hex digits found: "},
434
        {"Unknown extension type: ", "Unknown extension type: "},
435
        {"command {0} is ambiguous:", "command {0} is ambiguous:"},
D
duke 已提交
436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684

        // policytool
        {"Warning: A public key for alias 'signers[i]' does not exist.  Make sure a KeyStore is properly configured.",
                "Warning: A public key for alias {0} does not exist.  Make sure a KeyStore is properly configured."},
        {"Warning: Class not found: class", "Warning: Class not found: {0}"},
        {"Warning: Invalid argument(s) for constructor: arg",
                "Warning: Invalid argument(s) for constructor: {0}"},
        {"Illegal Principal Type: type", "Illegal Principal Type: {0}"},
        {"Illegal option: option", "Illegal option: {0}"},
        {"Usage: policytool [options]", "Usage: policytool [options]"},
        {"  [-file <file>]    policy file location",
                "  [-file <file>]    policy file location"},
        {"New", "New"},
        {"Open", "Open"},
        {"Save", "Save"},
        {"Save As", "Save As"},
        {"View Warning Log", "View Warning Log"},
        {"Exit", "Exit"},
        {"Add Policy Entry", "Add Policy Entry"},
        {"Edit Policy Entry", "Edit Policy Entry"},
        {"Remove Policy Entry", "Remove Policy Entry"},
        {"Edit", "Edit"},
        {"Retain", "Retain"},

        {"Warning: File name may include escaped backslash characters. " +
                        "It is not necessary to escape backslash characters " +
                        "(the tool escapes characters as necessary when writing " +
                        "the policy contents to the persistent store).\n\n" +
                        "Click on Retain to retain the entered name, or click on " +
                        "Edit to edit the name.",
            "Warning: File name may include escaped backslash characters. " +
                        "It is not necessary to escape backslash characters " +
                        "(the tool escapes characters as necessary when writing " +
                        "the policy contents to the persistent store).\n\n" +
                        "Click on Retain to retain the entered name, or click on " +
                        "Edit to edit the name."},

        {"Add Public Key Alias", "Add Public Key Alias"},
        {"Remove Public Key Alias", "Remove Public Key Alias"},
        {"File", "File"},
        {"KeyStore", "KeyStore"},
        {"Policy File:", "Policy File:"},
        {"Could not open policy file: policyFile: e.toString()",
                "Could not open policy file: {0}: {1}"},
        {"Policy Tool", "Policy Tool"},
        {"Errors have occurred while opening the policy configuration.  View the Warning Log for more information.",
                "Errors have occurred while opening the policy configuration.  View the Warning Log for more information."},
        {"Error", "Error"},
        {"OK", "OK"},
        {"Status", "Status"},
        {"Warning", "Warning"},
        {"Permission:                                                       ",
                "Permission:                                                       "},
        {"Principal Type:", "Principal Type:"},
        {"Principal Name:", "Principal Name:"},
        {"Target Name:                                                    ",
                "Target Name:                                                    "},
        {"Actions:                                                             ",
                "Actions:                                                             "},
        {"OK to overwrite existing file filename?",
                "OK to overwrite existing file {0}?"},
        {"Cancel", "Cancel"},
        {"CodeBase:", "CodeBase:"},
        {"SignedBy:", "SignedBy:"},
        {"Add Principal", "Add Principal"},
        {"Edit Principal", "Edit Principal"},
        {"Remove Principal", "Remove Principal"},
        {"Principals:", "Principals:"},
        {"  Add Permission", "  Add Permission"},
        {"  Edit Permission", "  Edit Permission"},
        {"Remove Permission", "Remove Permission"},
        {"Done", "Done"},
        {"KeyStore URL:", "KeyStore URL:"},
        {"KeyStore Type:", "KeyStore Type:"},
        {"KeyStore Provider:", "KeyStore Provider:"},
        {"KeyStore Password URL:", "KeyStore Password URL:"},
        {"Principals", "Principals"},
        {"  Edit Principal:", "  Edit Principal:"},
        {"  Add New Principal:", "  Add New Principal:"},
        {"Permissions", "Permissions"},
        {"  Edit Permission:", "  Edit Permission:"},
        {"  Add New Permission:", "  Add New Permission:"},
        {"Signed By:", "Signed By:"},
        {"Cannot Specify Principal with a Wildcard Class without a Wildcard Name",
            "Cannot Specify Principal with a Wildcard Class without a Wildcard Name"},
        {"Cannot Specify Principal without a Name",
            "Cannot Specify Principal without a Name"},
        {"Permission and Target Name must have a value",
                "Permission and Target Name must have a value"},
        {"Remove this Policy Entry?", "Remove this Policy Entry?"},
        {"Overwrite File", "Overwrite File"},
        {"Policy successfully written to filename",
                "Policy successfully written to {0}"},
        {"null filename", "null filename"},
        {"Save changes?", "Save changes?"},
        {"Yes", "Yes"},
        {"No", "No"},
        {"Policy Entry", "Policy Entry"},
        {"Save Changes", "Save Changes"},
        {"No Policy Entry selected", "No Policy Entry selected"},
        {"Unable to open KeyStore: ex.toString()",
                "Unable to open KeyStore: {0}"},
        {"No principal selected", "No principal selected"},
        {"No permission selected", "No permission selected"},
        {"name", "name"},
        {"configuration type", "configuration type"},
        {"environment variable name", "environment variable name"},
        {"library name", "library name"},
        {"package name", "package name"},
        {"policy type", "policy type"},
        {"property name", "property name"},
        {"Principal List", "Principal List"},
        {"Permission List", "Permission List"},
        {"Code Base", "Code Base"},
        {"KeyStore U R L:", "KeyStore U R L:"},
        {"KeyStore Password U R L:", "KeyStore Password U R L:"},


        // javax.security.auth.PrivateCredentialPermission
        {"invalid null input(s)", "invalid null input(s)"},
        {"actions can only be 'read'", "actions can only be 'read'"},
        {"permission name [name] syntax invalid: ",
                "permission name [{0}] syntax invalid: "},
        {"Credential Class not followed by a Principal Class and Name",
                "Credential Class not followed by a Principal Class and Name"},
        {"Principal Class not followed by a Principal Name",
                "Principal Class not followed by a Principal Name"},
        {"Principal Name must be surrounded by quotes",
                "Principal Name must be surrounded by quotes"},
        {"Principal Name missing end quote",
                "Principal Name missing end quote"},
        {"PrivateCredentialPermission Principal Class can not be a wildcard (*) value if Principal Name is not a wildcard (*) value",
                "PrivateCredentialPermission Principal Class can not be a wildcard (*) value if Principal Name is not a wildcard (*) value"},
        {"CredOwner:\n\tPrincipal Class = class\n\tPrincipal Name = name",
                "CredOwner:\n\tPrincipal Class = {0}\n\tPrincipal Name = {1}"},

        // javax.security.auth.x500
        {"provided null name", "provided null name"},
        {"provided null keyword map", "provided null keyword map"},
        {"provided null OID map", "provided null OID map"},

        // javax.security.auth.Subject
        {"invalid null AccessControlContext provided",
                "invalid null AccessControlContext provided"},
        {"invalid null action provided", "invalid null action provided"},
        {"invalid null Class provided", "invalid null Class provided"},
        {"Subject:\n", "Subject:\n"},
        {"\tPrincipal: ", "\tPrincipal: "},
        {"\tPublic Credential: ", "\tPublic Credential: "},
        {"\tPrivate Credentials inaccessible\n",
                "\tPrivate Credentials inaccessible\n"},
        {"\tPrivate Credential: ", "\tPrivate Credential: "},
        {"\tPrivate Credential inaccessible\n",
                "\tPrivate Credential inaccessible\n"},
        {"Subject is read-only", "Subject is read-only"},
        {"attempting to add an object which is not an instance of java.security.Principal to a Subject's Principal Set",
                "attempting to add an object which is not an instance of java.security.Principal to a Subject's Principal Set"},
        {"attempting to add an object which is not an instance of class",
                "attempting to add an object which is not an instance of {0}"},

        // javax.security.auth.login.AppConfigurationEntry
        {"LoginModuleControlFlag: ", "LoginModuleControlFlag: "},

        // javax.security.auth.login.LoginContext
        {"Invalid null input: name", "Invalid null input: name"},
        {"No LoginModules configured for name",
         "No LoginModules configured for {0}"},
        {"invalid null Subject provided", "invalid null Subject provided"},
        {"invalid null CallbackHandler provided",
                "invalid null CallbackHandler provided"},
        {"null subject - logout called before login",
                "null subject - logout called before login"},
        {"unable to instantiate LoginModule, module, because it does not provide a no-argument constructor",
                "unable to instantiate LoginModule, {0}, because it does not provide a no-argument constructor"},
        {"unable to instantiate LoginModule",
                "unable to instantiate LoginModule"},
        {"unable to instantiate LoginModule: ",
                "unable to instantiate LoginModule: "},
        {"unable to find LoginModule class: ",
                "unable to find LoginModule class: "},
        {"unable to access LoginModule: ",
                "unable to access LoginModule: "},
        {"Login Failure: all modules ignored",
                "Login Failure: all modules ignored"},

        // sun.security.provider.PolicyFile

        {"java.security.policy: error parsing policy:\n\tmessage",
                "java.security.policy: error parsing {0}:\n\t{1}"},
        {"java.security.policy: error adding Permission, perm:\n\tmessage",
                "java.security.policy: error adding Permission, {0}:\n\t{1}"},
        {"java.security.policy: error adding Entry:\n\tmessage",
                "java.security.policy: error adding Entry:\n\t{0}"},
        {"alias name not provided (pe.name)", "alias name not provided ({0})"},
        {"unable to perform substitution on alias, suffix",
                "unable to perform substitution on alias, {0}"},
        {"substitution value, prefix, unsupported",
                "substitution value, {0}, unsupported"},
        {"(", "("},
        {")", ")"},
        {"type can't be null","type can't be null"},

        // sun.security.provider.PolicyParser
        {"keystorePasswordURL can not be specified without also specifying keystore",
                "keystorePasswordURL can not be specified without also specifying keystore"},
        {"expected keystore type", "expected keystore type"},
        {"expected keystore provider", "expected keystore provider"},
        {"multiple Codebase expressions",
                "multiple Codebase expressions"},
        {"multiple SignedBy expressions","multiple SignedBy expressions"},
        {"SignedBy has empty alias","SignedBy has empty alias"},
        {"can not specify Principal with a wildcard class without a wildcard name",
                "can not specify Principal with a wildcard class without a wildcard name"},
        {"expected codeBase or SignedBy or Principal",
                "expected codeBase or SignedBy or Principal"},
        {"expected permission entry", "expected permission entry"},
        {"number ", "number "},
        {"expected [expect], read [end of file]",
                "expected [{0}], read [end of file]"},
        {"expected [;], read [end of file]",
                "expected [;], read [end of file]"},
        {"line number: msg", "line {0}: {1}"},
        {"line number: expected [expect], found [actual]",
                "line {0}: expected [{1}], found [{2}]"},
        {"null principalClass or principalName",
                "null principalClass or principalName"},

        // sun.security.pkcs11.SunPKCS11
        {"PKCS11 Token [providerName] Password: ",
                "PKCS11 Token [{0}] Password: "},

        /* --- DEPRECATED --- */
        // javax.security.auth.Policy
        {"unable to instantiate Subject-based policy",
                "unable to instantiate Subject-based policy"}
    };


    /**
     * Returns the contents of this <code>ResourceBundle</code>.
     *
     * <p>
     *
     * @return the contents of this <code>ResourceBundle</code>.
     */
    public Object[][] getContents() {
        return contents;
    }
}
W
weijun 已提交
685