1 /* |
|
2 * Copyright (c) 2000, 2013, Oracle and/or its affiliates. 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. Oracle designates this |
|
8 * particular file as subject to the "Classpath" exception as provided |
|
9 * by Oracle 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 Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
|
22 * or visit www.oracle.com if you need additional information or have any |
|
23 * questions. |
|
24 */ |
|
25 |
|
26 package sun.security.tools.policytool; |
|
27 |
|
28 /** |
|
29 * <p> This class represents the <code>ResourceBundle</code> |
|
30 * for the policytool. |
|
31 * |
|
32 */ |
|
33 public class Resources extends java.util.ListResourceBundle { |
|
34 |
|
35 private static final Object[][] contents = { |
|
36 {"NEWLINE", "\n"}, |
|
37 {"Warning.A.public.key.for.alias.signers.i.does.not.exist.Make.sure.a.KeyStore.is.properly.configured.", |
|
38 "Warning: A public key for alias {0} does not exist. Make sure a KeyStore is properly configured."}, |
|
39 {"Warning.Class.not.found.class", "Warning: Class not found: {0}"}, |
|
40 {"Warning.Invalid.argument.s.for.constructor.arg", |
|
41 "Warning: Invalid argument(s) for constructor: {0}"}, |
|
42 {"Illegal.Principal.Type.type", "Illegal Principal Type: {0}"}, |
|
43 {"Illegal.option.option", "Illegal option: {0}"}, |
|
44 {"Usage.policytool.options.", "Usage: policytool [options]"}, |
|
45 {".file.file.policy.file.location", |
|
46 " [-file <file>] policy file location"}, |
|
47 {"New", "&New"}, |
|
48 {"Open", "&Open..."}, |
|
49 {"Save", "&Save"}, |
|
50 {"Save.As", "Save &As..."}, |
|
51 {"View.Warning.Log", "View &Warning Log"}, |
|
52 {"Exit", "E&xit"}, |
|
53 {"Add.Policy.Entry", "&Add Policy Entry"}, |
|
54 {"Edit.Policy.Entry", "&Edit Policy Entry"}, |
|
55 {"Remove.Policy.Entry", "&Remove Policy Entry"}, |
|
56 {"Edit", "&Edit"}, |
|
57 {"Retain", "Retain"}, |
|
58 |
|
59 {"Warning.File.name.may.include.escaped.backslash.characters.It.is.not.necessary.to.escape.backslash.characters.the.tool.escapes", |
|
60 "Warning: File name may include escaped backslash characters. " + |
|
61 "It is not necessary to escape backslash characters " + |
|
62 "(the tool escapes characters as necessary when writing " + |
|
63 "the policy contents to the persistent store).\n\n" + |
|
64 "Click on Retain to retain the entered name, or click on " + |
|
65 "Edit to edit the name."}, |
|
66 |
|
67 {"Add.Public.Key.Alias", "Add Public Key Alias"}, |
|
68 {"Remove.Public.Key.Alias", "Remove Public Key Alias"}, |
|
69 {"File", "&File"}, |
|
70 {"KeyStore", "&KeyStore"}, |
|
71 {"Policy.File.", "Policy File:"}, |
|
72 {"Could.not.open.policy.file.policyFile.e.toString.", |
|
73 "Could not open policy file: {0}: {1}"}, |
|
74 {"Policy.Tool", "Policy Tool"}, |
|
75 {"Errors.have.occurred.while.opening.the.policy.configuration.View.the.Warning.Log.for.more.information.", |
|
76 "Errors have occurred while opening the policy configuration. View the Warning Log for more information."}, |
|
77 {"Error", "Error"}, |
|
78 {"OK", "OK"}, |
|
79 {"Status", "Status"}, |
|
80 {"Warning", "Warning"}, |
|
81 {"Permission.", |
|
82 "Permission: "}, |
|
83 {"Principal.Type.", "Principal Type:"}, |
|
84 {"Principal.Name.", "Principal Name:"}, |
|
85 {"Target.Name.", |
|
86 "Target Name: "}, |
|
87 {"Actions.", |
|
88 "Actions: "}, |
|
89 {"OK.to.overwrite.existing.file.filename.", |
|
90 "OK to overwrite existing file {0}?"}, |
|
91 {"Cancel", "Cancel"}, |
|
92 {"CodeBase.", "&CodeBase:"}, |
|
93 {"SignedBy.", "&SignedBy:"}, |
|
94 {"Add.Principal", "&Add Principal"}, |
|
95 {"Edit.Principal", "&Edit Principal"}, |
|
96 {"Remove.Principal", "&Remove Principal"}, |
|
97 {"Principals.", "&Principals:"}, |
|
98 {".Add.Permission", " A&dd Permission"}, |
|
99 {".Edit.Permission", " Ed&it Permission"}, |
|
100 {"Remove.Permission", "Re&move Permission"}, |
|
101 {"Done", "Done"}, |
|
102 {"KeyStore.URL.", "KeyStore &URL:"}, |
|
103 {"KeyStore.Type.", "KeyStore &Type:"}, |
|
104 {"KeyStore.Provider.", "KeyStore &Provider:"}, |
|
105 {"KeyStore.Password.URL.", "KeyStore Pass&word URL:"}, |
|
106 {"Principals", "Principals"}, |
|
107 {".Edit.Principal.", " Edit Principal:"}, |
|
108 {".Add.New.Principal.", " Add New Principal:"}, |
|
109 {"Permissions", "Permissions"}, |
|
110 {".Edit.Permission.", " Edit Permission:"}, |
|
111 {".Add.New.Permission.", " Add New Permission:"}, |
|
112 {"Signed.By.", "Signed By:"}, |
|
113 {"Cannot.Specify.Principal.with.a.Wildcard.Class.without.a.Wildcard.Name", |
|
114 "Cannot Specify Principal with a Wildcard Class without a Wildcard Name"}, |
|
115 {"Cannot.Specify.Principal.without.a.Name", |
|
116 "Cannot Specify Principal without a Name"}, |
|
117 {"Permission.and.Target.Name.must.have.a.value", |
|
118 "Permission and Target Name must have a value"}, |
|
119 {"Remove.this.Policy.Entry.", "Remove this Policy Entry?"}, |
|
120 {"Overwrite.File", "Overwrite File"}, |
|
121 {"Policy.successfully.written.to.filename", |
|
122 "Policy successfully written to {0}"}, |
|
123 {"null.filename", "null filename"}, |
|
124 {"Save.changes.", "Save changes?"}, |
|
125 {"Yes", "&Yes"}, |
|
126 {"No", "&No"}, |
|
127 {"Policy.Entry", "Policy Entry"}, |
|
128 {"Save.Changes", "Save Changes"}, |
|
129 {"No.Policy.Entry.selected", "No Policy Entry selected"}, |
|
130 {"Unable.to.open.KeyStore.ex.toString.", |
|
131 "Unable to open KeyStore: {0}"}, |
|
132 {"No.principal.selected", "No principal selected"}, |
|
133 {"No.permission.selected", "No permission selected"}, |
|
134 {"name", "name"}, |
|
135 {"configuration.type", "configuration type"}, |
|
136 {"environment.variable.name", "environment variable name"}, |
|
137 {"library.name", "library name"}, |
|
138 {"package.name", "package name"}, |
|
139 {"policy.type", "policy type"}, |
|
140 {"property.name", "property name"}, |
|
141 {"provider.name", "provider name"}, |
|
142 {"url", "url"}, |
|
143 {"method.list", "method list"}, |
|
144 {"request.headers.list", "request headers list"}, |
|
145 {"Principal.List", "Principal List"}, |
|
146 {"Permission.List", "Permission List"}, |
|
147 {"Code.Base", "Code Base"}, |
|
148 {"KeyStore.U.R.L.", "KeyStore U R L:"}, |
|
149 {"KeyStore.Password.U.R.L.", "KeyStore Password U R L:"} |
|
150 }; |
|
151 |
|
152 |
|
153 /** |
|
154 * Returns the contents of this <code>ResourceBundle</code>. |
|
155 * |
|
156 * <p> |
|
157 * |
|
158 * @return the contents of this <code>ResourceBundle</code>. |
|
159 */ |
|
160 @Override |
|
161 public Object[][] getContents() { |
|
162 return contents; |
|
163 } |
|
164 } |
|