author | schien |
Mon, 02 May 2011 09:36:49 -0700 | |
changeset 9390 | 76bb81c6327c |
parent 9011 | c08eb9697ee4 |
permissions | -rw-r--r-- |
2 | 1 |
/* |
9011
c08eb9697ee4
7019937: Translatability bug - Remove Unused String - String ID , read end of file
mullan
parents:
7179
diff
changeset
|
2 |
* Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved. |
2 | 3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
* |
|
5 |
* This code is free software; you can redistribute it and/or modify it |
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
|
5506 | 7 |
* published by the Free Software Foundation. Oracle designates this |
2 | 8 |
* particular file as subject to the "Classpath" exception as provided |
5506 | 9 |
* by Oracle in the LICENSE file that accompanied this code. |
2 | 10 |
* |
11 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
|
12 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
13 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
14 |
* version 2 for more details (a copy is included in the LICENSE file that |
|
15 |
* accompanied this code). |
|
16 |
* |
|
17 |
* You should have received a copy of the GNU General Public License version |
|
18 |
* 2 along with this work; if not, write to the Free Software Foundation, |
|
19 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
20 |
* |
|
5506 | 21 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
22 |
* or visit www.oracle.com if you need additional information or have any |
|
23 |
* questions. |
|
2 | 24 |
*/ |
25 |
||
26 |
package sun.security.util; |
|
27 |
||
28 |
/** |
|
29 |
* <p> This class represents the <code>ResourceBundle</code> |
|
30 |
* for the following packages: |
|
31 |
* |
|
32 |
* <ol> |
|
33 |
* <li> com.sun.security.auth |
|
34 |
* <li> com.sun.security.auth.login |
|
35 |
* </ol> |
|
36 |
* |
|
37 |
*/ |
|
38 |
public class AuthResources extends java.util.ListResourceBundle { |
|
39 |
||
40 |
private static final Object[][] contents = { |
|
41 |
||
42 |
// NT principals |
|
7179
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
5506
diff
changeset
|
43 |
{"invalid.null.input.value", "invalid null input: {0}"}, |
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
5506
diff
changeset
|
44 |
{"NTDomainPrincipal.name", "NTDomainPrincipal: {0}"}, |
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
5506
diff
changeset
|
45 |
{"NTNumericCredential.name", "NTNumericCredential: {0}"}, |
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
5506
diff
changeset
|
46 |
{"Invalid.NTSid.value", "Invalid NTSid value"}, |
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
5506
diff
changeset
|
47 |
{"NTSid.name", "NTSid: {0}"}, |
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
5506
diff
changeset
|
48 |
{"NTSidDomainPrincipal.name", "NTSidDomainPrincipal: {0}"}, |
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
5506
diff
changeset
|
49 |
{"NTSidGroupPrincipal.name", "NTSidGroupPrincipal: {0}"}, |
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
5506
diff
changeset
|
50 |
{"NTSidPrimaryGroupPrincipal.name", "NTSidPrimaryGroupPrincipal: {0}"}, |
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
5506
diff
changeset
|
51 |
{"NTSidUserPrincipal.name", "NTSidUserPrincipal: {0}"}, |
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
5506
diff
changeset
|
52 |
{"NTUserPrincipal.name", "NTUserPrincipal: {0}"}, |
2 | 53 |
|
54 |
// UnixPrincipals |
|
7179
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
5506
diff
changeset
|
55 |
{"UnixNumericGroupPrincipal.Primary.Group.name", |
2 | 56 |
"UnixNumericGroupPrincipal [Primary Group]: {0}"}, |
7179
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
5506
diff
changeset
|
57 |
{"UnixNumericGroupPrincipal.Supplementary.Group.name", |
2 | 58 |
"UnixNumericGroupPrincipal [Supplementary Group]: {0}"}, |
7179
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
5506
diff
changeset
|
59 |
{"UnixNumericUserPrincipal.name", "UnixNumericUserPrincipal: {0}"}, |
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
5506
diff
changeset
|
60 |
{"UnixPrincipal.name", "UnixPrincipal: {0}"}, |
2 | 61 |
|
62 |
// com.sun.security.auth.login.ConfigFile |
|
7179
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
5506
diff
changeset
|
63 |
{"Unable.to.properly.expand.config", "Unable to properly expand {0}"}, |
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
5506
diff
changeset
|
64 |
{"extra.config.No.such.file.or.directory.", |
2 | 65 |
"{0} (No such file or directory)"}, |
7179
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
5506
diff
changeset
|
66 |
{"Configuration.Error.No.such.file.or.directory", |
2 | 67 |
"Configuration Error:\n\tNo such file or directory"}, |
7179
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
5506
diff
changeset
|
68 |
{"Configuration.Error.Invalid.control.flag.flag", |
2 | 69 |
"Configuration Error:\n\tInvalid control flag, {0}"}, |
7179
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
5506
diff
changeset
|
70 |
{"Configuration.Error.Can.not.specify.multiple.entries.for.appName", |
2 | 71 |
"Configuration Error:\n\tCan not specify multiple entries for {0}"}, |
7179
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
5506
diff
changeset
|
72 |
{"Configuration.Error.expected.expect.read.end.of.file.", |
2 | 73 |
"Configuration Error:\n\texpected [{0}], read [end of file]"}, |
7179
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
5506
diff
changeset
|
74 |
{"Configuration.Error.Line.line.expected.expect.found.value.", |
2 | 75 |
"Configuration Error:\n\tLine {0}: expected [{1}], found [{2}]"}, |
7179
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
5506
diff
changeset
|
76 |
{"Configuration.Error.Line.line.expected.expect.", |
2 | 77 |
"Configuration Error:\n\tLine {0}: expected [{1}]"}, |
7179
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
5506
diff
changeset
|
78 |
{"Configuration.Error.Line.line.system.property.value.expanded.to.empty.value", |
2 | 79 |
"Configuration Error:\n\tLine {0}: system property [{1}] expanded to empty value"}, |
80 |
||
81 |
// com.sun.security.auth.module.JndiLoginModule |
|
7179
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
5506
diff
changeset
|
82 |
{"username.","username: "}, |
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
5506
diff
changeset
|
83 |
{"password.","password: "}, |
2 | 84 |
|
85 |
// com.sun.security.auth.module.KeyStoreLoginModule |
|
7179
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
5506
diff
changeset
|
86 |
{"Please.enter.keystore.information", |
2 | 87 |
"Please enter keystore information"}, |
7179
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
5506
diff
changeset
|
88 |
{"Keystore.alias.","Keystore alias: "}, |
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
5506
diff
changeset
|
89 |
{"Keystore.password.","Keystore password: "}, |
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
5506
diff
changeset
|
90 |
{"Private.key.password.optional.", |
2 | 91 |
"Private key password (optional): "}, |
92 |
||
93 |
// com.sun.security.auth.module.Krb5LoginModule |
|
7179
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
5506
diff
changeset
|
94 |
{"Kerberos.username.defUsername.", |
2 | 95 |
"Kerberos username [{0}]: "}, |
7179
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
5506
diff
changeset
|
96 |
{"Kerberos.password.for.username.", |
2 | 97 |
"Kerberos password for {0}: "}, |
98 |
||
99 |
/*** EVERYTHING BELOW IS DEPRECATED ***/ |
|
100 |
||
101 |
// com.sun.security.auth.PolicyFile |
|
7179
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
5506
diff
changeset
|
102 |
{".error.parsing.", ": error parsing "}, |
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
5506
diff
changeset
|
103 |
{"COLON", ": "}, |
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
5506
diff
changeset
|
104 |
{".error.adding.Permission.", ": error adding Permission "}, |
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
5506
diff
changeset
|
105 |
{"SPACE", " "}, |
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
5506
diff
changeset
|
106 |
{".error.adding.Entry.", ": error adding Entry "}, |
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
5506
diff
changeset
|
107 |
{"LPARAM", "("}, |
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
5506
diff
changeset
|
108 |
{"RPARAM", ")"}, |
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
5506
diff
changeset
|
109 |
{"attempt.to.add.a.Permission.to.a.readonly.PermissionCollection", |
2 | 110 |
"attempt to add a Permission to a readonly PermissionCollection"}, |
111 |
||
112 |
// com.sun.security.auth.PolicyParser |
|
7179
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
5506
diff
changeset
|
113 |
{"expected.keystore.type", "expected keystore type"}, |
9011
c08eb9697ee4
7019937: Translatability bug - Remove Unused String - String ID , read end of file
mullan
parents:
7179
diff
changeset
|
114 |
{"can.not.specify.Principal.with.a.wildcard.class.without.a.wildcard.name", |
c08eb9697ee4
7019937: Translatability bug - Remove Unused String - String ID , read end of file
mullan
parents:
7179
diff
changeset
|
115 |
"can not specify Principal with a wildcard class without a wildcard name"}, |
7179
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
5506
diff
changeset
|
116 |
{"expected.codeBase.or.SignedBy", "expected codeBase or SignedBy"}, |
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
5506
diff
changeset
|
117 |
{"only.Principal.based.grant.entries.permitted", |
2 | 118 |
"only Principal-based grant entries permitted"}, |
7179
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
5506
diff
changeset
|
119 |
{"expected.permission.entry", "expected permission entry"}, |
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
5506
diff
changeset
|
120 |
{"number.", "number "}, |
9011
c08eb9697ee4
7019937: Translatability bug - Remove Unused String - String ID , read end of file
mullan
parents:
7179
diff
changeset
|
121 |
{"expected.expect.read.end.of.file.", |
c08eb9697ee4
7019937: Translatability bug - Remove Unused String - String ID , read end of file
mullan
parents:
7179
diff
changeset
|
122 |
"expected {0}, read end of file"}, |
7179
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
5506
diff
changeset
|
123 |
{"expected.read.end.of.file", "expected ';', read end of file"}, |
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
5506
diff
changeset
|
124 |
{"line.", "line "}, |
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
5506
diff
changeset
|
125 |
{".expected.", ": expected '"}, |
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
5506
diff
changeset
|
126 |
{".found.", "', found '"}, |
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
5506
diff
changeset
|
127 |
{"QUOTE", "'"}, |
2 | 128 |
|
129 |
// SolarisPrincipals |
|
7179
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
5506
diff
changeset
|
130 |
{"SolarisNumericGroupPrincipal.Primary.Group.", |
2 | 131 |
"SolarisNumericGroupPrincipal [Primary Group]: "}, |
7179
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
5506
diff
changeset
|
132 |
{"SolarisNumericGroupPrincipal.Supplementary.Group.", |
2 | 133 |
"SolarisNumericGroupPrincipal [Supplementary Group]: "}, |
7179
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
5506
diff
changeset
|
134 |
{"SolarisNumericUserPrincipal.", |
2 | 135 |
"SolarisNumericUserPrincipal: "}, |
7179
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
5506
diff
changeset
|
136 |
{"SolarisPrincipal.", "SolarisPrincipal: "}, |
9011
c08eb9697ee4
7019937: Translatability bug - Remove Unused String - String ID , read end of file
mullan
parents:
7179
diff
changeset
|
137 |
// provided.null.name is the NullPointerException message when a |
c08eb9697ee4
7019937: Translatability bug - Remove Unused String - String ID , read end of file
mullan
parents:
7179
diff
changeset
|
138 |
// developer incorrectly passes a null name to the constructor of |
c08eb9697ee4
7019937: Translatability bug - Remove Unused String - String ID , read end of file
mullan
parents:
7179
diff
changeset
|
139 |
// subclasses of java.security.Principal |
7179
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
5506
diff
changeset
|
140 |
{"provided.null.name", "provided null name"} |
2 | 141 |
|
142 |
}; |
|
143 |
||
144 |
/** |
|
145 |
* Returns the contents of this <code>ResourceBundle</code>. |
|
146 |
* |
|
147 |
* <p> |
|
148 |
* |
|
149 |
* @return the contents of this <code>ResourceBundle</code>. |
|
150 |
*/ |
|
151 |
public Object[][] getContents() { |
|
152 |
return contents; |
|
153 |
} |
|
154 |
} |