|
1 /* |
|
2 * Copyright 2000-2005 Sun Microsystems, Inc. All Rights Reserved. |
|
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.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"}, |
|
57 {" jarsigner -verify [options] jar-file", |
|
58 " jarsigner -verify [options] jar-file"}, |
|
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)"}, |
|
67 {"[-sigfile <file>] name of .SF/.DSA file", |
|
68 "[-sigfile <file>] name of .SF/.DSA file"}, |
|
69 {"[-signedjar <file>] name of signed JAR file", |
|
70 "[-signedjar <file>] name of signed JAR file"}, |
|
71 {"[-digestalg <algorithm>] name of digest algorithm", |
|
72 "[-digestalg <algorithm>] name of digest algorithm"}, |
|
73 {"[-sigalg <algorithm>] name of signature algorithm", |
|
74 "[-sigalg <algorithm>] name of signature algorithm"}, |
|
75 {"[-verify] verify a signed JAR file", |
|
76 "[-verify] verify a signed JAR file"}, |
|
77 {"[-verbose] verbose output when signing/verifying", |
|
78 "[-verbose] verbose output when signing/verifying"}, |
|
79 {"[-certs] display certificates when verbose and verifying", |
|
80 "[-certs] display certificates when verbose and verifying"}, |
|
81 {"[-tsa <url>] location of the Timestamping Authority", |
|
82 "[-tsa <url>] location of the Timestamping Authority"}, |
|
83 {"[-tsacert <alias>] public key certificate for Timestamping Authority", |
|
84 "[-tsacert <alias>] public key certificate for Timestamping Authority"}, |
|
85 {"[-altsigner <class>] class name of an alternative signing mechanism", |
|
86 "[-altsigner <class>] class name of an alternative signing mechanism"}, |
|
87 {"[-altsignerpath <pathlist>] location of an alternative signing mechanism", |
|
88 "[-altsignerpath <pathlist>] location of an alternative signing mechanism"}, |
|
89 {"[-internalsf] include the .SF file inside the signature block", |
|
90 "[-internalsf] include the .SF file inside the signature block"}, |
|
91 {"[-sectionsonly] don't compute hash of entire manifest", |
|
92 "[-sectionsonly] don't compute hash of entire manifest"}, |
|
93 {"[-protected] keystore has protected authentication path", |
|
94 "[-protected] keystore has protected authentication path"}, |
|
95 {"[-providerName <name>] provider name", |
|
96 "[-providerName <name>] provider name"}, |
|
97 {"[-providerClass <class> name of cryptographic service provider's", |
|
98 "[-providerClass <class> name of cryptographic service provider's"}, |
|
99 {" [-providerArg <arg>]] ... master class file and constructor argument", |
|
100 " [-providerArg <arg>]] ... master class file and constructor argument"}, |
|
101 {"s", "s"}, |
|
102 {"m", "m"}, |
|
103 {"k", "k"}, |
|
104 {"i", "i"}, |
|
105 {" s = signature was verified ", |
|
106 " s = signature was verified "}, |
|
107 {" m = entry is listed in manifest", |
|
108 " m = entry is listed in manifest"}, |
|
109 {" k = at least one certificate was found in keystore", |
|
110 " k = at least one certificate was found in keystore"}, |
|
111 {" i = at least one certificate was found in identity scope", |
|
112 " i = at least one certificate was found in identity scope"}, |
|
113 {"no manifest.", "no manifest."}, |
|
114 {"jar is unsigned. (signatures missing or not parsable)", |
|
115 "jar is unsigned. (signatures missing or not parsable)"}, |
|
116 {"jar verified.", "jar verified."}, |
|
117 {"jarsigner: ", "jarsigner: "}, |
|
118 {"signature filename must consist of the following characters: A-Z, 0-9, _ or -", |
|
119 "signature filename must consist of the following characters: A-Z, 0-9, _ or -"}, |
|
120 {"unable to open jar file: ", "unable to open jar file: "}, |
|
121 {"unable to create: ", "unable to create: "}, |
|
122 {" adding: ", " adding: "}, |
|
123 {" updating: ", " updating: "}, |
|
124 {" signing: ", " signing: "}, |
|
125 {"attempt to rename signedJarFile to jarFile failed", |
|
126 "attempt to rename {0} to {1} failed"}, |
|
127 {"attempt to rename jarFile to origJar failed", |
|
128 "attempt to rename {0} to {1} failed"}, |
|
129 {"unable to sign jar: ", "unable to sign jar: "}, |
|
130 {"Enter Passphrase for keystore: ", "Enter Passphrase for keystore: "}, |
|
131 {"keystore load: ", "keystore load: "}, |
|
132 {"certificate exception: ", "certificate exception: "}, |
|
133 {"unable to instantiate keystore class: ", |
|
134 "unable to instantiate keystore class: "}, |
|
135 {"Certificate chain not found for: alias. alias must reference a valid KeyStore key entry containing a private key and corresponding public key certificate chain.", |
|
136 "Certificate chain not found for: {0}. {1} must reference a valid KeyStore key entry containing a private key and corresponding public key certificate chain."}, |
|
137 {"found non-X.509 certificate in signer's chain", |
|
138 "found non-X.509 certificate in signer's chain"}, |
|
139 {"incomplete certificate chain", "incomplete certificate chain"}, |
|
140 {"Enter key password for alias: ", "Enter key password for {0}: "}, |
|
141 {"unable to recover key from keystore", |
|
142 "unable to recover key from keystore"}, |
|
143 {"key associated with alias not a private key", |
|
144 "key associated with {0} not a private key"}, |
|
145 {"you must enter key password", "you must enter key password"}, |
|
146 {"unable to read password: ", "unable to read password: "}, |
|
147 {"certificate is valid from", "certificate is valid from {0} to {1}"}, |
|
148 {"certificate expired on", "certificate expired on {0}"}, |
|
149 {"certificate is not valid until", |
|
150 "certificate is not valid until {0}"}, |
|
151 {"certificate will expire on", "certificate will expire on {0}"}, |
|
152 {"requesting a signature timestamp", |
|
153 "requesting a signature timestamp"}, |
|
154 {"TSA location: ", "TSA location: "}, |
|
155 {"TSA certificate: ", "TSA certificate: "}, |
|
156 {"no response from the Timestamping Authority. ", |
|
157 "no response from the Timestamping Authority. "}, |
|
158 {"When connecting from behind a firewall then an HTTP proxy may need to be specified. ", |
|
159 "When connecting from behind a firewall then an HTTP proxy may need to be specified. "}, |
|
160 {"Supply the following options to jarsigner: ", |
|
161 "Supply the following options to jarsigner: "}, |
|
162 {"Certificate not found for: alias. alias must reference a valid KeyStore entry containing an X.509 public key certificate for the Timestamping Authority.", |
|
163 "Certificate not found for: {0}. {1} must reference a valid KeyStore entry containing an X.509 public key certificate for the Timestamping Authority."}, |
|
164 {"using an alternative signing mechanism", |
|
165 "using an alternative signing mechanism"}, |
|
166 {"entry was signed on", "entry was signed on {0}"}, |
|
167 {"Warning: ", "Warning: "}, |
|
168 {"This jar contains unsigned entries which have not been integrity-checked. ", |
|
169 "This jar contains unsigned entries which have not been integrity-checked. "}, |
|
170 {"This jar contains entries whose signer certificate has expired. ", |
|
171 "This jar contains entries whose signer certificate has expired. "}, |
|
172 {"This jar contains entries whose signer certificate will expire within six months. ", |
|
173 "This jar contains entries whose signer certificate will expire within six months. "}, |
|
174 {"This jar contains entries whose signer certificate is not yet valid. ", |
|
175 "This jar contains entries whose signer certificate is not yet valid. "}, |
|
176 {"Re-run with the -verbose option for more details.", |
|
177 "Re-run with the -verbose option for more details."}, |
|
178 {"Re-run with the -verbose and -certs options for more details.", |
|
179 "Re-run with the -verbose and -certs options for more details."}, |
|
180 {"The signer certificate has expired.", |
|
181 "The signer certificate has expired."}, |
|
182 {"The signer certificate will expire within six months.", |
|
183 "The signer certificate will expire within six months."}, |
|
184 {"The signer certificate is not yet valid.", |
|
185 "The signer certificate is not yet valid."}, |
|
186 {"The signer certificate's KeyUsage extension doesn't allow code signing.", |
|
187 "The signer certificate's KeyUsage extension doesn't allow code signing."}, |
|
188 {"The signer certificate's ExtendedKeyUsage extension doesn't allow code signing.", |
|
189 "The signer certificate's ExtendedKeyUsage extension doesn't allow code signing."}, |
|
190 {"The signer certificate's NetscapeCertType extension doesn't allow code signing.", |
|
191 "The signer certificate's NetscapeCertType extension doesn't allow code signing."}, |
|
192 {"This jar contains entries whose signer certificate's KeyUsage extension doesn't allow code signing.", |
|
193 "This jar contains entries whose signer certificate's KeyUsage extension doesn't allow code signing."}, |
|
194 {"This jar contains entries whose signer certificate's ExtendedKeyUsage extension doesn't allow code signing.", |
|
195 "This jar contains entries whose signer certificate's ExtendedKeyUsage extension doesn't allow code signing."}, |
|
196 {"This jar contains entries whose signer certificate's NetscapeCertType extension doesn't allow code signing.", |
|
197 "This jar contains entries whose signer certificate's NetscapeCertType extension doesn't allow code signing."}, |
|
198 {"[{0} extension does not support code signing]", |
|
199 "[{0} extension does not support code signing]"}, |
|
200 }; |
|
201 |
|
202 /** |
|
203 * Returns the contents of this <code>ResourceBundle</code>. |
|
204 * |
|
205 * <p> |
|
206 * |
|
207 * @return the contents of this <code>ResourceBundle</code>. |
|
208 */ |
|
209 public Object[][] getContents() { |
|
210 return contents; |
|
211 } |
|
212 } |