jdk/src/share/classes/sun/security/util/AuthResources.java
author weijun
Thu, 11 Nov 2010 15:51:12 +0800
changeset 7179 4afb81e50183
parent 5506 202f599c92aa
child 9011 c08eb9697ee4
permissions -rw-r--r--
6987827: security/util/Resources.java needs improvement Reviewed-by: valeriep
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
     2
 * Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 *
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    23
 * questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
package sun.security.util;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
 * <p> This class represents the <code>ResourceBundle</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
 * for the following packages:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
 * <ol>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
 * <li> com.sun.security.auth
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
 * <li> com.sun.security.auth.login
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
 * </ol>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
public class AuthResources extends java.util.ListResourceBundle {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
    private static final Object[][] contents = {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
90ce3da70b43 Initial load
duke
parents:
diff changeset
    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
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
        // UnixPrincipals
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
    55
        {"UnixNumericGroupPrincipal.Primary.Group.name",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    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
90ce3da70b43 Initial load
duke
parents:
diff changeset
    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
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
90ce3da70b43 Initial load
duke
parents:
diff changeset
    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
90ce3da70b43 Initial load
duke
parents:
diff changeset
    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
90ce3da70b43 Initial load
duke
parents:
diff changeset
    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
90ce3da70b43 Initial load
duke
parents:
diff changeset
    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
90ce3da70b43 Initial load
duke
parents:
diff changeset
    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
90ce3da70b43 Initial load
duke
parents:
diff changeset
    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
90ce3da70b43 Initial load
duke
parents:
diff changeset
    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
90ce3da70b43 Initial load
duke
parents:
diff changeset
    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
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
            "Configuration Error:\n\tLine {0}: system property [{1}] expanded to empty value"},
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
90ce3da70b43 Initial load
duke
parents:
diff changeset
    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
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
90ce3da70b43 Initial load
duke
parents:
diff changeset
    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
90ce3da70b43 Initial load
duke
parents:
diff changeset
    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
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
            "Private key password (optional): "},
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
90ce3da70b43 Initial load
duke
parents:
diff changeset
    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
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
                "Kerberos username [{0}]: "},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
    96
        {"Kerberos.password.for.username.",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
                "Kerberos password for {0}: "},
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
        /***    EVERYTHING BELOW IS DEPRECATED  ***/
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
90ce3da70b43 Initial load
duke
parents:
diff changeset
   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
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
            "attempt to add a Permission to a readonly PermissionCollection"},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
90ce3da70b43 Initial load
duke
parents:
diff changeset
   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"},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   114
        {"can.not.specify.Principal.with.a.",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
                "can not specify Principal with a "},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   116
        {"wildcard.class.without.a.wildcard.name",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
                "wildcard class without a wildcard name"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   118
        {"expected.codeBase.or.SignedBy", "expected codeBase or SignedBy"},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   119
        {"only.Principal.based.grant.entries.permitted",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
                "only Principal-based grant entries permitted"},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   121
        {"expected.permission.entry", "expected permission entry"},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   122
        {"number.", "number "},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   123
        {"expected.", "expected "},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   124
        {".read.end.of.file", ", read end of file"},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   125
        {"expected.read.end.of.file", "expected ';', read end of file"},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   126
        {"line.", "line "},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   127
        {".expected.", ": expected '"},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   128
        {".found.", "', found '"},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   129
        {"QUOTE", "'"},
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
        // SolarisPrincipals
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   132
        {"SolarisNumericGroupPrincipal.Primary.Group.",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
                "SolarisNumericGroupPrincipal [Primary Group]: "},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   134
        {"SolarisNumericGroupPrincipal.Supplementary.Group.",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
                "SolarisNumericGroupPrincipal [Supplementary Group]: "},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   136
        {"SolarisNumericUserPrincipal.",
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
                "SolarisNumericUserPrincipal: "},
7179
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   138
        {"SolarisPrincipal.", "SolarisPrincipal: "},
4afb81e50183 6987827: security/util/Resources.java needs improvement
weijun
parents: 5506
diff changeset
   139
        {"provided.null.name", "provided null name"}
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
    };
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
     * Returns the contents of this <code>ResourceBundle</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
     * @return the contents of this <code>ResourceBundle</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
    public Object[][] getContents() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
        return contents;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
}