0N/A/*
2362N/A * Copyright (c) 2000, 2007, Oracle and/or its affiliates. All rights reserved.
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A *
0N/A * This code is free software; you can redistribute it and/or modify it
0N/A * under the terms of the GNU General Public License version 2 only, as
2362N/A * published by the Free Software Foundation. Oracle designates this
0N/A * particular file as subject to the "Classpath" exception as provided
2362N/A * by Oracle in the LICENSE file that accompanied this code.
0N/A *
0N/A * This code is distributed in the hope that it will be useful, but WITHOUT
0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A * version 2 for more details (a copy is included in the LICENSE file that
0N/A * accompanied this code).
0N/A *
0N/A * You should have received a copy of the GNU General Public License version
0N/A * 2 along with this work; if not, write to the Free Software Foundation,
0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A *
2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2362N/A * or visit www.oracle.com if you need additional information or have any
2362N/A * questions.
0N/A */
0N/A
0N/A/*
0N/A *
0N/A * (C) Copyright IBM Corp. 1999 All Rights Reserved.
0N/A * Copyright 1997 The Open Group Research Institute. All rights reserved.
0N/A */
0N/A
0N/Apackage sun.security.krb5.internal;
0N/A
0N/Aimport java.util.Hashtable;
0N/A
0N/A// Constants and other defined values from RFC 4120
0N/A
0N/Apublic class Krb5 {
0N/A
0N/A //Recommended KDC values
0N/A public static final int DEFAULT_ALLOWABLE_CLOCKSKEW = 5 * 60; //5 minutes
0N/A public static final int DEFAULT_MINIMUM_LIFETIME = 5 * 60; //5 minutes
0N/A public static final int DEFAULT_MAXIMUM_RENEWABLE_LIFETIME = 7 * 24 * 60 * 60; //1 week
0N/A public static final int DEFAULT_MAXIMUM_TICKET_LIFETIME = 24 * 60 * 60; //1 day
0N/A public static final boolean DEFAULT_FORWARDABLE_ALLOWED = true;
0N/A public static final boolean DEFAULT_PROXIABLE_ALLOWED = true;
0N/A public static final boolean DEFAULT_POSTDATE_ALLOWED = true;
0N/A public static final boolean DEFAULT_RENEWABLE_ALLOWED = true;
0N/A public static final boolean AP_EMPTY_ADDRESSES_ALLOWED = true;
0N/A
0N/A //AP_REQ Options
0N/A
0N/A public static final int AP_OPTS_RESERVED = 0;
0N/A public static final int AP_OPTS_USE_SESSION_KEY = 1;
0N/A public static final int AP_OPTS_MUTUAL_REQUIRED = 2;
0N/A public static final int AP_OPTS_MAX = 31;
0N/A
0N/A //Ticket Flags
0N/A
0N/A public static final int TKT_OPTS_RESERVED = 0;
0N/A public static final int TKT_OPTS_FORWARDABLE = 1;
0N/A public static final int TKT_OPTS_FORWARDED = 2;
0N/A public static final int TKT_OPTS_PROXIABLE = 3;
0N/A public static final int TKT_OPTS_PROXY = 4;
0N/A public static final int TKT_OPTS_MAY_POSTDATE = 5;
0N/A public static final int TKT_OPTS_POSTDATED = 6;
0N/A public static final int TKT_OPTS_INVALID = 7;
0N/A public static final int TKT_OPTS_RENEWABLE = 8;
0N/A public static final int TKT_OPTS_INITIAL = 9;
0N/A public static final int TKT_OPTS_PRE_AUTHENT = 10;
0N/A public static final int TKT_OPTS_HW_AUTHENT = 11;
0N/A public static final int TKT_OPTS_DELEGATE = 13;
0N/A public static final int TKT_OPTS_MAX = 31;
0N/A
0N/A // KDC Options
0N/A // (option values defined in KDCOptions.java)
0N/A public static final int KDC_OPTS_MAX = 31;
0N/A
0N/A // KerberosFlags
0N/A public static final int KRB_FLAGS_MAX = 31;
0N/A
0N/A //Last Request types
0N/A
0N/A public static final int LRTYPE_NONE = 0;
0N/A public static final int LRTYPE_TIME_OF_INITIAL_TGT = 1;
0N/A public static final int LRTYPE_TIME_OF_INITIAL_REQ = 2;
0N/A public static final int LRTYPE_TIME_OF_NEWEST_TGT = 3;
0N/A public static final int LRTYPE_TIME_OF_LAST_RENEWAL = 4;
0N/A public static final int LRTYPE_TIME_OF_LAST_REQ = 5;
0N/A
0N/A //Host address lengths
0N/A
0N/A public static final int ADDR_LEN_INET = 4;
0N/A public static final int ADDR_LEN_CHAOS = 2;
0N/A public static final int ADDR_LEN_OSI = 0; //means variable
0N/A public static final int ADDR_LEN_XNS = 6;
0N/A public static final int ADDR_LEN_APPLETALK = 3;
0N/A public static final int ADDR_LEN_DECNET = 2;
0N/A
0N/A //Host address types
0N/A
0N/A public static final int ADDRTYPE_UNIX = 1; // Local
0N/A public static final int ADDRTYPE_INET = 2; // Internet
0N/A public static final int ADDRTYPE_IMPLINK = 3; // Arpanet
0N/A public static final int ADDRTYPE_PUP = 4; // PUP
0N/A public static final int ADDRTYPE_CHAOS = 5; // CHAOS
0N/A public static final int ADDRTYPE_XNS = 6; // XEROX Network Services
0N/A public static final int ADDRTYPE_IPX = 6; // IPX
0N/A public static final int ADDRTYPE_ISO = 7; // ISO
0N/A public static final int ADDRTYPE_ECMA = 8; // European Computer Manufacturers
0N/A public static final int ADDRTYPE_DATAKIT = 9; // Datakit
0N/A public static final int ADDRTYPE_CCITT = 10; // CCITT
0N/A public static final int ADDRTYPE_SNA = 11; // SNA
0N/A public static final int ADDRTYPE_DECNET = 12; // DECnet
0N/A public static final int ADDRTYPE_DLI = 13; // Direct Data Link Interface
0N/A public static final int ADDRTYPE_LAT = 14; // LAT
0N/A public static final int ADDRTYPE_HYLINK = 15; // NSC Hyperchannel
0N/A public static final int ADDRTYPE_APPLETALK = 16; // AppleTalk
0N/A public static final int ADDRTYPE_NETBIOS = 17; // NetBios
0N/A public static final int ADDRTYPE_VOICEVIEW = 18; // VoiceView
0N/A public static final int ADDRTYPE_FIREFOX = 19; // Firefox
0N/A public static final int ADDRTYPE_BAN = 21; // Banyan
0N/A public static final int ADDRTYPE_ATM = 22; // ATM
0N/A public static final int ADDRTYPE_INET6 = 24; // Internet Protocol V6
0N/A
0N/A //IP Transport UDP Port for KDC Messages
0N/A
0N/A public static final int KDC_INET_DEFAULT_PORT = 88;
0N/A
0N/A // number of retries before giving up
0N/A
0N/A public static final int KDC_RETRY_LIMIT = 3;
0N/A
0N/A //OSI authentication mechanism OID
0N/A
0N/A //public static final int[] OSI_AUTH_MECH_TYPE = { /*iso*/ 1, /*org*/ 3,
0N/A // /*dod*/ 5, /*internet*/ 1, /*security*/ 5, /*kerberosv5*/ 2 };
0N/A
0N/A //Protocol constants and associated values
0N/A
0N/A //Key Types
0N/A public static final int KEYTYPE_NULL = 0;
0N/A public static final int KEYTYPE_DES = 1;
0N/A
0N/A public static final int KEYTYPE_DES3 = 2;
0N/A public static final int KEYTYPE_AES = 3;
0N/A public static final int KEYTYPE_ARCFOUR_HMAC = 4;
0N/A
0N/A
0N/A //----------------------------------------+-----------------
0N/A // padata type |padata-type value
0N/A //----------------------------------------+-----------------
0N/A public static final int PA_TGS_REQ = 1;
0N/A public static final int PA_ENC_TIMESTAMP = 2;
0N/A public static final int PA_PW_SALT = 3;
0N/A
0N/A // new preauth types
0N/A public static final int PA_ETYPE_INFO = 11;
0N/A public static final int PA_ETYPE_INFO2 = 19;
0N/A
0N/A //-------------------------------+-------------
0N/A //authorization data type |ad-type value
0N/A //-------------------------------+-------------
0N/A //reserved values 0-63
0N/A public static final int OSF_DCE = 64;
0N/A public static final int SESAME = 65;
0N/A
0N/A //----------------------------------------------+-----------------
0N/A //alternate authentication type |method-type value
0N/A //----------------------------------------------+-----------------
0N/A // reserved values 0-63
0N/A public static final int ATT_CHALLENGE_RESPONSE = 64;
0N/A
0N/A //--------------------------------------------+-------------
0N/A //transited encoding type |tr-type value
0N/A //--------------------------------------------+-------------
0N/A public static final int DOMAIN_X500_COMPRESS = 1;
0N/A // reserved values all others
0N/A
0N/A //----------------------------+-------+-----------------------------------------
0N/A // Label |Value |Meaning
0N/A //----------------------------+-------+-----------------------------------------
0N/A public static final int PVNO = 5; // current Kerberos protocol version number
0N/A public static final int AUTHNETICATOR_VNO = 5; // current authenticator version number
0N/A public static final int TICKET_VNO = 5; // current ticket version number
0N/A
0N/A //message types
0N/A
0N/A // there are several message sub-components not included here
0N/A public static final int KRB_AS_REQ = 10; //Request for initial authentication
0N/A public static final int KRB_AS_REP = 11; //Response to KRB_AS_REQ request
0N/A public static final int KRB_TGS_REQ = 12; //Request for authentication based on TGT
0N/A public static final int KRB_TGS_REP = 13; //Response to KRB_TGS_REQ request
0N/A public static final int KRB_AP_REQ = 14; //application request to server
0N/A public static final int KRB_AP_REP = 15; //Response to KRB_AP_REQ_MUTUAL
0N/A public static final int KRB_SAFE = 20; //Safe (checksummed) application message
0N/A public static final int KRB_PRIV = 21; //Private (encrypted) application message
0N/A public static final int KRB_CRED = 22; //Private (encrypted) message to forward credentials
0N/A public static final int KRB_ERROR = 30; //Error response
0N/A
0N/A //message component types
0N/A
0N/A public static final int KRB_TKT = 1; //Ticket
0N/A public static final int KRB_AUTHENTICATOR = 2; //Authenticator
0N/A public static final int KRB_ENC_TKT_PART = 3; //Encrypted ticket part
0N/A public static final int KRB_ENC_AS_REP_PART = 25; //Encrypted initial authentication part
0N/A public static final int KRB_ENC_TGS_REP_PART = 26; //Encrypted TGS request part
0N/A public static final int KRB_ENC_AP_REP_PART = 27; //Encrypted application request part
0N/A public static final int KRB_ENC_KRB_PRIV_PART = 28; //Encrypted application message part
0N/A public static final int KRB_ENC_KRB_CRED_PART = 29; //Encrypted credentials forward part
0N/A
0N/A
0N/A //error codes
0N/A
0N/A public static final int KDC_ERR_NONE = 0; //No error
0N/A public static final int KDC_ERR_NAME_EXP = 1; //Client's entry in database expired
0N/A public static final int KDC_ERR_SERVICE_EXP = 2; //Server's entry in database has expired
0N/A public static final int KDC_ERR_BAD_PVNO = 3; //Requested protocol version number not supported
0N/A public static final int KDC_ERR_C_OLD_MAST_KVNO = 4; //Client's key encrypted in old master key
0N/A public static final int KDC_ERR_S_OLD_MAST_KVNO = 5; //Server's key encrypted in old master key
0N/A public static final int KDC_ERR_C_PRINCIPAL_UNKNOWN = 6; //Client not found in Kerberos database
0N/A public static final int KDC_ERR_S_PRINCIPAL_UNKNOWN = 7; //Server not found in Kerberos database
0N/A public static final int KDC_ERR_PRINCIPAL_NOT_UNIQUE = 8; //Multiple principal entries in database
0N/A public static final int KDC_ERR_NULL_KEY = 9; //The client or server has a null key
0N/A public static final int KDC_ERR_CANNOT_POSTDATE = 10; //Ticket not eligible for postdating
0N/A public static final int KDC_ERR_NEVER_VALID = 11; //Requested start time is later than end time
0N/A public static final int KDC_ERR_POLICY = 12; //KDC policy rejects request
0N/A public static final int KDC_ERR_BADOPTION = 13; //KDC cannot accommodate requested option
0N/A public static final int KDC_ERR_ETYPE_NOSUPP = 14; //KDC has no support for encryption type
0N/A public static final int KDC_ERR_SUMTYPE_NOSUPP = 15; //KDC has no support for checksum type
0N/A public static final int KDC_ERR_PADATA_TYPE_NOSUPP = 16; //KDC has no support for padata type
0N/A public static final int KDC_ERR_TRTYPE_NOSUPP = 17; //KDC has no support for transited type
0N/A public static final int KDC_ERR_CLIENT_REVOKED = 18; //Clients credentials have been revoked
0N/A public static final int KDC_ERR_SERVICE_REVOKED = 19; //Credentials for server have been revoked
0N/A public static final int KDC_ERR_TGT_REVOKED = 20; //TGT has been revoked
0N/A public static final int KDC_ERR_CLIENT_NOTYET = 21; //Client not yet valid - try again later
0N/A public static final int KDC_ERR_SERVICE_NOTYET = 22; //Server not yet valid - try again later
0N/A public static final int KDC_ERR_KEY_EXPIRED = 23; //Password has expired - change password to reset
0N/A public static final int KDC_ERR_PREAUTH_FAILED = 24; //Pre-authentication information was invalid
0N/A public static final int KDC_ERR_PREAUTH_REQUIRED = 25; //Additional pre-authentication required
0N/A public static final int KRB_AP_ERR_BAD_INTEGRITY = 31; //Integrity check on decrypted field failed
0N/A public static final int KRB_AP_ERR_TKT_EXPIRED = 32; //Ticket expired
0N/A public static final int KRB_AP_ERR_TKT_NYV = 33; //Ticket not yet valid
0N/A public static final int KRB_AP_ERR_REPEAT = 34; //Request is a replay
0N/A public static final int KRB_AP_ERR_NOT_US = 35; //The ticket isn't for us
0N/A public static final int KRB_AP_ERR_BADMATCH = 36; //Ticket and authenticator don't match
0N/A public static final int KRB_AP_ERR_SKEW = 37; //Clock skew too great
0N/A public static final int KRB_AP_ERR_BADADDR = 38; //Incorrect net address
0N/A public static final int KRB_AP_ERR_BADVERSION = 39; //Protocol version mismatch
0N/A public static final int KRB_AP_ERR_MSG_TYPE = 40; //Invalid msg type
0N/A public static final int KRB_AP_ERR_MODIFIED = 41; //Message stream modified
0N/A public static final int KRB_AP_ERR_BADORDER = 42; //Message out of order
0N/A public static final int KRB_AP_ERR_BADKEYVER = 44; //Specified version of key is not available
0N/A public static final int KRB_AP_ERR_NOKEY = 45; //Service key not available
0N/A public static final int KRB_AP_ERR_MUT_FAIL = 46; //Mutual authentication failed
0N/A public static final int KRB_AP_ERR_BADDIRECTION = 47; //Incorrect message direction
0N/A public static final int KRB_AP_ERR_METHOD = 48; //Alternative authentication method required
0N/A public static final int KRB_AP_ERR_BADSEQ = 49; //Incorrect sequence number in message
0N/A public static final int KRB_AP_ERR_INAPP_CKSUM = 50; //Inappropriate type of checksum in message
0N/A public static final int KRB_ERR_RESPONSE_TOO_BIG = 52; //Response too big for UDP, retry with TCP
0N/A public static final int KRB_ERR_GENERIC = 60; //Generic error (description in e-text)
0N/A public static final int KRB_ERR_FIELD_TOOLONG = 61; //Field is too long for this implementation
0N/A public static final int KRB_CRYPTO_NOT_SUPPORT = 100; //Client does not support this crypto type
0N/A public static final int KRB_AP_ERR_NOREALM = 62;
0N/A public static final int KRB_AP_ERR_GEN_CRED = 63;
0N/A // public static final int KRB_AP_ERR_CKSUM_NOKEY =101; //Lack of the key to generate the checksum
0N/A // error codes specific to this implementation
0N/A public static final int KRB_AP_ERR_REQ_OPTIONS = 101; //Invalid TGS_REQ
0N/A public static final int API_INVALID_ARG = 400; //Invalid argument
0N/A
0N/A public static final int BITSTRING_SIZE_INVALID = 500; //BitString size does not match input byte array
0N/A public static final int BITSTRING_INDEX_OUT_OF_BOUNDS = 501; //BitString bit index does not fall within size
0N/A public static final int BITSTRING_BAD_LENGTH = 502; //BitString length is wrong for the expected type
0N/A
0N/A public static final int REALM_ILLCHAR = 600; //Illegal character in realm name; one of: '/', ':', '\0'
0N/A public static final int REALM_NULL = 601; //Null realm name
0N/A
0N/A public static final int ASN1_BAD_TIMEFORMAT = 900; //Input not in GeneralizedTime format
0N/A public static final int ASN1_MISSING_FIELD = 901; //Structure is missing a required field
0N/A public static final int ASN1_MISPLACED_FIELD = 902; //Unexpected field number
0N/A public static final int ASN1_TYPE_MISMATCH = 903; //Type numbers are inconsistent
0N/A public static final int ASN1_OVERFLOW = 904; //Value too large
0N/A public static final int ASN1_OVERRUN = 905; //Encoding ended unexpectedly
0N/A public static final int ASN1_BAD_ID = 906; //Identifier doesn't match expected value
0N/A public static final int ASN1_BAD_LENGTH = 907; //Length doesn't match expected value
0N/A public static final int ASN1_BAD_FORMAT = 908; //Badly-formatted encoding
0N/A public static final int ASN1_PARSE_ERROR = 909; //Parse error
0N/A public static final int ASN1_BAD_CLASS = 910; //Bad class number
0N/A public static final int ASN1_BAD_TYPE = 911; //Bad type number
0N/A public static final int ASN1_BAD_TAG = 912; //Bad tag number
0N/A public static final int ASN1_UNSUPPORTED_TYPE = 913; //Unsupported ASN.1 type encountered
0N/A public static final int ASN1_CANNOT_ENCODE = 914; //Encoding failed due to invalid parameter(s)
0N/A
0N/A private static Hashtable<Integer,String> errMsgList;
0N/A
0N/A public static String getErrorMessage(int i) {
0N/A return errMsgList.get(i);
0N/A }
0N/A
0N/A
0N/A public static final boolean DEBUG =
0N/A java.security.AccessController.doPrivileged(
0N/A new sun.security.action.GetBooleanAction("sun.security.krb5.debug"));
0N/A public static final sun.misc.HexDumpEncoder hexDumper =
0N/A new sun.misc.HexDumpEncoder();
0N/A
0N/A static {
0N/A errMsgList = new Hashtable<Integer,String> ();
0N/A errMsgList.put(KDC_ERR_NONE, "No error");
0N/A errMsgList.put(KDC_ERR_NAME_EXP, "Client's entry in database expired");
0N/A errMsgList.put(KDC_ERR_SERVICE_EXP, "Server's entry in database has expired");
0N/A errMsgList.put(KDC_ERR_BAD_PVNO, "Requested protocol version number not supported");
0N/A errMsgList.put(KDC_ERR_C_OLD_MAST_KVNO, "Client's key encrypted in old master key");
0N/A errMsgList.put(KDC_ERR_S_OLD_MAST_KVNO, "Server's key encrypted in old master key");
0N/A errMsgList.put(KDC_ERR_C_PRINCIPAL_UNKNOWN, "Client not found in Kerberos database");
0N/A errMsgList.put(KDC_ERR_S_PRINCIPAL_UNKNOWN, "Server not found in Kerberos database");
0N/A errMsgList.put(KDC_ERR_PRINCIPAL_NOT_UNIQUE, "Multiple principal entries in database");
0N/A errMsgList.put(KDC_ERR_NULL_KEY, "The client or server has a null key");
0N/A errMsgList.put(KDC_ERR_CANNOT_POSTDATE, "Ticket not eligible for postdating");
0N/A errMsgList.put(KDC_ERR_NEVER_VALID, "Requested start time is later than end time");
0N/A errMsgList.put(KDC_ERR_POLICY, "KDC policy rejects request");
0N/A errMsgList.put(KDC_ERR_BADOPTION, "KDC cannot accommodate requested option");
0N/A errMsgList.put(KDC_ERR_ETYPE_NOSUPP, "KDC has no support for encryption type");
0N/A errMsgList.put(KDC_ERR_SUMTYPE_NOSUPP, "KDC has no support for checksum type");
0N/A errMsgList.put(KDC_ERR_PADATA_TYPE_NOSUPP, "KDC has no support for padata type");
0N/A errMsgList.put(KDC_ERR_TRTYPE_NOSUPP, "KDC has no support for transited type");
0N/A errMsgList.put(KDC_ERR_CLIENT_REVOKED, "Clients credentials have been revoked");
0N/A errMsgList.put(KDC_ERR_SERVICE_REVOKED, "Credentials for server have been revoked");
0N/A errMsgList.put(KDC_ERR_TGT_REVOKED, "TGT has been revoked");
0N/A errMsgList.put(KDC_ERR_CLIENT_NOTYET, "Client not yet valid - try again later");
0N/A errMsgList.put(KDC_ERR_SERVICE_NOTYET, "Server not yet valid - try again later");
0N/A errMsgList.put(KDC_ERR_KEY_EXPIRED, "Password has expired - change password to reset");
0N/A errMsgList.put(KDC_ERR_PREAUTH_FAILED, "Pre-authentication information was invalid");
0N/A errMsgList.put(KDC_ERR_PREAUTH_REQUIRED, "Additional pre-authentication required");
0N/A errMsgList.put(KRB_AP_ERR_BAD_INTEGRITY, "Integrity check on decrypted field failed");
0N/A errMsgList.put(KRB_AP_ERR_TKT_EXPIRED, "Ticket expired");
0N/A errMsgList.put(KRB_AP_ERR_TKT_NYV, "Ticket not yet valid");
0N/A errMsgList.put(KRB_AP_ERR_REPEAT, "Request is a replay");
0N/A errMsgList.put(KRB_AP_ERR_NOT_US, "The ticket isn't for us");
0N/A errMsgList.put(KRB_AP_ERR_BADMATCH, "Ticket and authenticator don't match");
0N/A errMsgList.put(KRB_AP_ERR_SKEW, "Clock skew too great");
0N/A errMsgList.put(KRB_AP_ERR_BADADDR, "Incorrect net address");
0N/A errMsgList.put(KRB_AP_ERR_BADVERSION, "Protocol version mismatch");
0N/A errMsgList.put(KRB_AP_ERR_MSG_TYPE, "Invalid msg type");
0N/A errMsgList.put(KRB_AP_ERR_MODIFIED, "Message stream modified");
0N/A errMsgList.put(KRB_AP_ERR_BADORDER, "Message out of order");
0N/A errMsgList.put(KRB_AP_ERR_BADKEYVER, "Specified version of key is not available");
0N/A errMsgList.put(KRB_AP_ERR_NOKEY, "Service key not available");
0N/A errMsgList.put(KRB_AP_ERR_MUT_FAIL, "Mutual authentication failed");
0N/A errMsgList.put(KRB_AP_ERR_BADDIRECTION, "Incorrect message direction");
0N/A errMsgList.put(KRB_AP_ERR_METHOD, "Alternative authentication method required");
0N/A errMsgList.put(KRB_AP_ERR_BADSEQ, "Incorrect sequence number in message");
0N/A errMsgList.put(KRB_AP_ERR_INAPP_CKSUM, "Inappropriate type of checksum in message");
0N/A errMsgList.put(KRB_ERR_RESPONSE_TOO_BIG, "Response too big for UDP, retry with TCP");
0N/A errMsgList.put(KRB_ERR_GENERIC, "Generic error (description in e-text)");
0N/A errMsgList.put(KRB_ERR_FIELD_TOOLONG, "Field is too long for this implementation");
0N/A errMsgList.put(KRB_AP_ERR_NOREALM, "Realm name not available"); //used in setDefaultCreds() in sun.security.krb5.Credentials
0N/A
0N/A // error messages specific to this implementation
0N/A
0N/A errMsgList.put(API_INVALID_ARG, "Invalid argument");
0N/A
0N/A errMsgList.put(BITSTRING_SIZE_INVALID, "BitString size does not match input byte array");
0N/A errMsgList.put(BITSTRING_INDEX_OUT_OF_BOUNDS, "BitString bit index does not fall within size");
0N/A errMsgList.put(BITSTRING_BAD_LENGTH, "BitString length is wrong for the expected type");
0N/A
0N/A errMsgList.put(REALM_ILLCHAR, "Illegal character in realm name; one of: '/', ':', '\0'");
0N/A errMsgList.put(REALM_NULL, "Null realm name");
0N/A
0N/A errMsgList.put(ASN1_BAD_TIMEFORMAT, "Input not in GeneralizedTime format");
0N/A errMsgList.put(ASN1_MISSING_FIELD, "Structure is missing a required field");
0N/A errMsgList.put(ASN1_MISPLACED_FIELD, "Unexpected field number");
0N/A errMsgList.put(ASN1_TYPE_MISMATCH, "Type numbers are inconsistent");
0N/A errMsgList.put(ASN1_OVERFLOW, "Value too large");
0N/A errMsgList.put(ASN1_OVERRUN, "Encoding ended unexpectedly");
0N/A errMsgList.put(ASN1_BAD_ID, "Identifier doesn't match expected value");
0N/A errMsgList.put(ASN1_BAD_LENGTH, "Length doesn't match expected value");
0N/A errMsgList.put(ASN1_BAD_FORMAT, "Badly-formatted encoding");
0N/A errMsgList.put(ASN1_PARSE_ERROR, "Parse error");
0N/A errMsgList.put(ASN1_BAD_CLASS, "Bad class number");
0N/A errMsgList.put(ASN1_BAD_TYPE, "Bad type number");
0N/A errMsgList.put(ASN1_BAD_TAG, "Bad tag number");
0N/A errMsgList.put(ASN1_UNSUPPORTED_TYPE, "Unsupported ASN.1 type encountered");
0N/A errMsgList.put(ASN1_CANNOT_ENCODE, "Encoding failed due to invalid parameter(s)");
0N/A errMsgList.put(KRB_CRYPTO_NOT_SUPPORT, "Client has no support for crypto type");
0N/A errMsgList.put(KRB_AP_ERR_REQ_OPTIONS, "Invalid option setting in ticket request.");
0N/A errMsgList.put(KRB_AP_ERR_GEN_CRED, "Fail to create credential.");
0N/A }
0N/A
0N/A}