src/java.base/share/classes/sun/security/util/AuthResources.java
author lana
Sun, 14 Jan 2018 22:25:53 -0800
changeset 48536 d7995ed9627d
parent 47216 71c04702a3d5
permissions -rw-r--r--
8194717: JDK10 L10n resource file update - msgdrop 10 Reviewed-by: joehw Contributed-by: li.jiang@oracle.com
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
46888
ab8444ea0151 8159544: Remove deprecated classes in com.sun.security.auth.**
mullan
parents: 45842
diff changeset
     2
 * Copyright (c) 2000, 2017, 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
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
     * Returns the contents of this <code>ResourceBundle</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
     * @return the contents of this <code>ResourceBundle</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
    public Object[][] getContents() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
        return contents;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
}