author | valeriep |
Wed, 23 Jul 2014 21:50:21 +0000 | |
changeset 25669 | daa21271c03b |
parent 23010 | 6dadb192ad81 |
permissions | -rw-r--r-- |
2 | 1 |
/* |
23010
6dadb192ad81
8029235: Update copyright year to match last edit in jdk8 jdk repository for 2013
lana
parents:
15664
diff
changeset
|
2 |
* Copyright (c) 2000, 2013, 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 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 |
// javax.security.auth.PrivateCredentialPermission |
|
7179
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
6688
diff
changeset
|
38 |
{"invalid.null.input.s.", "invalid null input(s)"}, |
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
6688
diff
changeset
|
39 |
{"actions.can.only.be.read.", "actions can only be 'read'"}, |
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
6688
diff
changeset
|
40 |
{"permission.name.name.syntax.invalid.", |
2 | 41 |
"permission name [{0}] syntax invalid: "}, |
7179
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
6688
diff
changeset
|
42 |
{"Credential.Class.not.followed.by.a.Principal.Class.and.Name", |
2 | 43 |
"Credential Class not followed by a Principal Class and Name"}, |
7179
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
6688
diff
changeset
|
44 |
{"Principal.Class.not.followed.by.a.Principal.Name", |
2 | 45 |
"Principal Class not followed by a Principal Name"}, |
7179
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
6688
diff
changeset
|
46 |
{"Principal.Name.must.be.surrounded.by.quotes", |
2 | 47 |
"Principal Name must be surrounded by quotes"}, |
7179
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
6688
diff
changeset
|
48 |
{"Principal.Name.missing.end.quote", |
2 | 49 |
"Principal Name missing end quote"}, |
7179
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
6688
diff
changeset
|
50 |
{"PrivateCredentialPermission.Principal.Class.can.not.be.a.wildcard.value.if.Principal.Name.is.not.a.wildcard.value", |
2 | 51 |
"PrivateCredentialPermission Principal Class can not be a wildcard (*) value if Principal Name is not a wildcard (*) value"}, |
7179
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
6688
diff
changeset
|
52 |
{"CredOwner.Principal.Class.class.Principal.Name.name", |
2 | 53 |
"CredOwner:\n\tPrincipal Class = {0}\n\tPrincipal Name = {1}"}, |
54 |
||
55 |
// javax.security.auth.x500 |
|
7179
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
6688
diff
changeset
|
56 |
{"provided.null.name", "provided null name"}, |
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
6688
diff
changeset
|
57 |
{"provided.null.keyword.map", "provided null keyword map"}, |
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
6688
diff
changeset
|
58 |
{"provided.null.OID.map", "provided null OID map"}, |
2 | 59 |
|
60 |
// javax.security.auth.Subject |
|
14182
3041082abb40
7194449: String resources for Key Tool and Policy Tool should be in their respective packages
sflores
parents:
11912
diff
changeset
|
61 |
{"NEWLINE", "\n"}, |
7179
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
6688
diff
changeset
|
62 |
{"invalid.null.AccessControlContext.provided", |
2 | 63 |
"invalid null AccessControlContext provided"}, |
7179
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
6688
diff
changeset
|
64 |
{"invalid.null.action.provided", "invalid null action provided"}, |
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
6688
diff
changeset
|
65 |
{"invalid.null.Class.provided", "invalid null Class provided"}, |
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
6688
diff
changeset
|
66 |
{"Subject.", "Subject:\n"}, |
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
6688
diff
changeset
|
67 |
{".Principal.", "\tPrincipal: "}, |
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
6688
diff
changeset
|
68 |
{".Public.Credential.", "\tPublic Credential: "}, |
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
6688
diff
changeset
|
69 |
{".Private.Credentials.inaccessible.", |
2 | 70 |
"\tPrivate Credentials inaccessible\n"}, |
7179
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
6688
diff
changeset
|
71 |
{".Private.Credential.", "\tPrivate Credential: "}, |
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
6688
diff
changeset
|
72 |
{".Private.Credential.inaccessible.", |
2 | 73 |
"\tPrivate Credential inaccessible\n"}, |
7179
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
6688
diff
changeset
|
74 |
{"Subject.is.read.only", "Subject is read-only"}, |
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
6688
diff
changeset
|
75 |
{"attempting.to.add.an.object.which.is.not.an.instance.of.java.security.Principal.to.a.Subject.s.Principal.Set", |
2 | 76 |
"attempting to add an object which is not an instance of java.security.Principal to a Subject's Principal Set"}, |
7179
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
6688
diff
changeset
|
77 |
{"attempting.to.add.an.object.which.is.not.an.instance.of.class", |
2 | 78 |
"attempting to add an object which is not an instance of {0}"}, |
79 |
||
80 |
// javax.security.auth.login.AppConfigurationEntry |
|
7179
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
6688
diff
changeset
|
81 |
{"LoginModuleControlFlag.", "LoginModuleControlFlag: "}, |
2 | 82 |
|
83 |
// javax.security.auth.login.LoginContext |
|
7179
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
6688
diff
changeset
|
84 |
{"Invalid.null.input.name", "Invalid null input: name"}, |
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
6688
diff
changeset
|
85 |
{"No.LoginModules.configured.for.name", |
2 | 86 |
"No LoginModules configured for {0}"}, |
7179
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
6688
diff
changeset
|
87 |
{"invalid.null.Subject.provided", "invalid null Subject provided"}, |
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
6688
diff
changeset
|
88 |
{"invalid.null.CallbackHandler.provided", |
2 | 89 |
"invalid null CallbackHandler provided"}, |
7179
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
6688
diff
changeset
|
90 |
{"null.subject.logout.called.before.login", |
2 | 91 |
"null subject - logout called before login"}, |
7179
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
6688
diff
changeset
|
92 |
{"unable.to.instantiate.LoginModule.module.because.it.does.not.provide.a.no.argument.constructor", |
2 | 93 |
"unable to instantiate LoginModule, {0}, because it does not provide a no-argument constructor"}, |
7179
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
6688
diff
changeset
|
94 |
{"unable.to.instantiate.LoginModule", |
2 | 95 |
"unable to instantiate LoginModule"}, |
7179
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
6688
diff
changeset
|
96 |
{"unable.to.instantiate.LoginModule.", |
2 | 97 |
"unable to instantiate LoginModule: "}, |
7179
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
6688
diff
changeset
|
98 |
{"unable.to.find.LoginModule.class.", |
2 | 99 |
"unable to find LoginModule class: "}, |
7179
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
6688
diff
changeset
|
100 |
{"unable.to.access.LoginModule.", |
2 | 101 |
"unable to access LoginModule: "}, |
7179
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
6688
diff
changeset
|
102 |
{"Login.Failure.all.modules.ignored", |
2 | 103 |
"Login Failure: all modules ignored"}, |
104 |
||
105 |
// sun.security.provider.PolicyFile |
|
106 |
||
7179
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
6688
diff
changeset
|
107 |
{"java.security.policy.error.parsing.policy.message", |
2 | 108 |
"java.security.policy: error parsing {0}:\n\t{1}"}, |
7179
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
6688
diff
changeset
|
109 |
{"java.security.policy.error.adding.Permission.perm.message", |
2 | 110 |
"java.security.policy: error adding Permission, {0}:\n\t{1}"}, |
7179
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
6688
diff
changeset
|
111 |
{"java.security.policy.error.adding.Entry.message", |
2 | 112 |
"java.security.policy: error adding Entry:\n\t{0}"}, |
7179
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
6688
diff
changeset
|
113 |
{"alias.name.not.provided.pe.name.", "alias name not provided ({0})"}, |
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
6688
diff
changeset
|
114 |
{"unable.to.perform.substitution.on.alias.suffix", |
2 | 115 |
"unable to perform substitution on alias, {0}"}, |
7179
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
6688
diff
changeset
|
116 |
{"substitution.value.prefix.unsupported", |
2 | 117 |
"substitution value, {0}, unsupported"}, |
7179
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
6688
diff
changeset
|
118 |
{"LPARAM", "("}, |
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
6688
diff
changeset
|
119 |
{"RPARAM", ")"}, |
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
6688
diff
changeset
|
120 |
{"type.can.t.be.null","type can't be null"}, |
2 | 121 |
|
122 |
// sun.security.provider.PolicyParser |
|
7179
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
6688
diff
changeset
|
123 |
{"keystorePasswordURL.can.not.be.specified.without.also.specifying.keystore", |
2 | 124 |
"keystorePasswordURL can not be specified without also specifying keystore"}, |
7179
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
6688
diff
changeset
|
125 |
{"expected.keystore.type", "expected keystore type"}, |
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
6688
diff
changeset
|
126 |
{"expected.keystore.provider", "expected keystore provider"}, |
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
6688
diff
changeset
|
127 |
{"multiple.Codebase.expressions", |
2 | 128 |
"multiple Codebase expressions"}, |
7179
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
6688
diff
changeset
|
129 |
{"multiple.SignedBy.expressions","multiple SignedBy expressions"}, |
15664
e33b115f1981
8007755: Support the logical grouping of keystores
vinnie
parents:
14182
diff
changeset
|
130 |
{"duplicate.keystore.domain.name","duplicate keystore domain name: {0}"}, |
e33b115f1981
8007755: Support the logical grouping of keystores
vinnie
parents:
14182
diff
changeset
|
131 |
{"duplicate.keystore.name","duplicate keystore name: {0}"}, |
7179
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
6688
diff
changeset
|
132 |
{"SignedBy.has.empty.alias","SignedBy has empty alias"}, |
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
6688
diff
changeset
|
133 |
{"can.not.specify.Principal.with.a.wildcard.class.without.a.wildcard.name", |
2 | 134 |
"can not specify Principal with a wildcard class without a wildcard name"}, |
7179
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
6688
diff
changeset
|
135 |
{"expected.codeBase.or.SignedBy.or.Principal", |
2 | 136 |
"expected codeBase or SignedBy or Principal"}, |
7179
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
6688
diff
changeset
|
137 |
{"expected.permission.entry", "expected permission entry"}, |
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
6688
diff
changeset
|
138 |
{"number.", "number "}, |
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
6688
diff
changeset
|
139 |
{"expected.expect.read.end.of.file.", |
2 | 140 |
"expected [{0}], read [end of file]"}, |
7179
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
6688
diff
changeset
|
141 |
{"expected.read.end.of.file.", |
2 | 142 |
"expected [;], read [end of file]"}, |
7179
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
6688
diff
changeset
|
143 |
{"line.number.msg", "line {0}: {1}"}, |
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
6688
diff
changeset
|
144 |
{"line.number.expected.expect.found.actual.", |
2 | 145 |
"line {0}: expected [{1}], found [{2}]"}, |
7179
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
6688
diff
changeset
|
146 |
{"null.principalClass.or.principalName", |
2 | 147 |
"null principalClass or principalName"}, |
148 |
||
149 |
// sun.security.pkcs11.SunPKCS11 |
|
7179
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
6688
diff
changeset
|
150 |
{"PKCS11.Token.providerName.Password.", |
2 | 151 |
"PKCS11 Token [{0}] Password: "}, |
152 |
||
153 |
/* --- DEPRECATED --- */ |
|
154 |
// javax.security.auth.Policy |
|
7179
4afb81e50183
6987827: security/util/Resources.java needs improvement
weijun
parents:
6688
diff
changeset
|
155 |
{"unable.to.instantiate.Subject.based.policy", |
2 | 156 |
"unable to instantiate Subject-based policy"} |
157 |
}; |
|
158 |
||
159 |
||
160 |
/** |
|
161 |
* Returns the contents of this <code>ResourceBundle</code>. |
|
162 |
* |
|
163 |
* <p> |
|
164 |
* |
|
165 |
* @return the contents of this <code>ResourceBundle</code>. |
|
166 |
*/ |
|
14182
3041082abb40
7194449: String resources for Key Tool and Policy Tool should be in their respective packages
sflores
parents:
11912
diff
changeset
|
167 |
@Override |
2 | 168 |
public Object[][] getContents() { |
169 |
return contents; |
|
170 |
} |
|
171 |
} |
|
3948 | 172 |