247. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 9/25/2018 2:13:23 PM Central Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

247.1 Files compared

# Location File Last Modified
1 build 3.zip\build 3\MHLTH_YS_137_Source\JavaScript\resources\javaJDF-1.8.0\src\sun\security\krb5\internal Krb5.java Mon Jan 22 14:46:54 2018 UTC
2 build 3.zip\build 3\MHLTH_YS_137_Source\JavaScript\resources\javaJDF-1.8.0\src\sun\security\krb5\internal Krb5.java Wed Sep 12 17:52:25 2018 UTC

247.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 2 788
Changed 1 2
Inserted 0 0
Removed 0 0

247.3 Comparison options

Whitespace
Character case Differences in character case are significant
Line endings Differences in line endings (CR and LF characters) are ignored
CR/LF characters Not shown in the comparison detail

247.4 Active regular expressions

No regular expressions were active.

247.5 Comparison detail

  1   /*
  2    * Copyrig ht (c) 200 0, 2013, O racle and/ or its aff iliates. A ll rights  reserved.
  3    * DO NOT  ALTER OR R EMOVE COPY RIGHT NOTI CES OR THI S FILE HEA DER.
  4    *
  5    * This co de is free  software;  you can r edistribut e it and/o r modify i t
  6    * under t he terms o f the GNU  General Pu blic Licen se version  2 only, a s
  7    * publish ed by the  Free Softw are Founda tion.  Ora cle design ates this
  8    * particu lar file a s subject  to the "Cl asspath" e xception a s provided
  9    * by Orac le in the  LICENSE fi le that ac companied  this code.
  10    *
  11    * This co de is dist ributed in  the hope  that it wi ll be usef ul, but WI THOUT
  12    * ANY WAR RANTY; wit hout even  the implie d warranty  of MERCHA NTABILITY  or
  13    * FITNESS  FOR A PAR TICULAR PU RPOSE.  Se e the GNU  General Pu blic Licen se
  14    * version  2 for mor e details  (a copy is  included  in the LIC ENSE file  that
  15    * accompa nied this  code).
  16    *
  17    * You sho uld have r eceived a  copy of th e GNU Gene ral Public  License v ersion
  18    * 2 along  with this  work; if  not, write  to the Fr ee Softwar e Foundati on,
  19    * Inc., 5 1 Franklin  St, Fifth  Floor, Bo ston, MA 0 2110-1301  USA.
  20    *
  21    * Please  contact Or acle, 500  Oracle Par kway, Redw ood Shores , CA 94065  USA
  22    * or visi t www.orac le.com if  you need a dditional  informatio n or have  any
  23    * questio ns.
  24    */
  25  
  26   /*
  27    *
  28    *  (C) Co pyright IB M Corp. 19 99 All Rig hts Reserv ed.
  29    *  Copyri ght 1997 T he Open Gr oup Resear ch Institu te.  All r ights rese rved.
  30    */
  31  
  32   package su n.security .krb5.inte rnal;
  33  
  34   import jav a.util.Has htable;
  35  
  36   // Constan ts and oth er defined  values fr om RFC 412 0
  37  
  38   public cla ss Krb5 {
  39  
  40       //Reco mmended KD C values
  41       public  static fi nal int DE FAULT_ALLO WABLE_CLOC KSKEW = 5  * 60; //5  minutes
  42       public  static fi nal int DE FAULT_MINI MUM_LIFETI ME = 5 * 6 0; //5 min utes
  43       public  static fi nal int DE FAULT_MAXI MUM_RENEWA BLE_LIFETI ME = 7 * 2 4 * 60 * 6 0; //1 wee k
  44       public  static fi nal int DE FAULT_MAXI MUM_TICKET _LIFETIME  = 24 * 60  * 60; //1  day
  45       public  static fi nal boolea n DEFAULT_ FORWARDABL E_ALLOWED  = true;
  46       public  static fi nal boolea n DEFAULT_ PROXIABLE_ ALLOWED =  true;
  47       public  static fi nal boolea n DEFAULT_ POSTDATE_A LLOWED = t rue;
  48       public  static fi nal boolea n DEFAULT_ RENEWABLE_ ALLOWED =  true;
  49       public  static fi nal boolea n AP_EMPTY _ADDRESSES _ALLOWED =  true;
  50  
  51       //AP_R EQ Options
  52  
  53       public  static fi nal int AP _OPTS_RESE RVED         = 0;
  54       public  static fi nal int AP _OPTS_USE_ SESSION_KE Y = 1;
  55       public  static fi nal int AP _OPTS_MUTU AL_REQUIRE D = 2;
  56       public  static fi nal int AP _OPTS_MAX               = 31;
  57  
  58       //Tick et Flags
  59  
  60       public  static fi nal int TK T_OPTS_RES ERVED      = 0;
  61       public  static fi nal int TK T_OPTS_FOR WARDABLE   = 1;
  62       public  static fi nal int TK T_OPTS_FOR WARDED     = 2;
  63       public  static fi nal int TK T_OPTS_PRO XIABLE     = 3;
  64       public  static fi nal int TK T_OPTS_PRO XY         = 4;
  65       public  static fi nal int TK T_OPTS_MAY _POSTDATE  = 5;
  66       public  static fi nal int TK T_OPTS_POS TDATED     = 6;
  67       public  static fi nal int TK T_OPTS_INV ALID       = 7;
  68       public  static fi nal int TK T_OPTS_REN EWABLE     = 8;
  69       public  static fi nal int TK T_OPTS_INI TIAL       = 9;
  70       public  static fi nal int TK T_OPTS_PRE _AUTHENT   = 10;
  71       public  static fi nal int TK T_OPTS_HW_ AUTHENT    = 11;
  72       public  static fi nal int TK T_OPTS_DEL EGATE      = 13;
  73       public  static fi nal int TK T_OPTS_MAX            = 31;
  74  
  75       // KDC  Options
  76       // (op tion value s defined  in KDCOpti ons.java)
  77       public  static fi nal int KD C_OPTS_MAX            = 31;
  78  
  79       // Ker berosFlags
  80       public  static fi nal int KR B_FLAGS_MA X          = 31;
  81  
  82       //Last  Request t ypes
  83  
  84       public  static fi nal int LR TYPE_NONE                   = 0;
  85       public  static fi nal int LR TYPE_TIME_ OF_INITIAL _TGT  = 1;
  86       public  static fi nal int LR TYPE_TIME_ OF_INITIAL _REQ  = 2;
  87       public  static fi nal int LR TYPE_TIME_ OF_NEWEST_ TGT   = 3;
  88       public  static fi nal int LR TYPE_TIME_ OF_LAST_RE NEWAL = 4;
  89       public  static fi nal int LR TYPE_TIME_ OF_LAST_RE Q     = 5;
  90  
  91       //Host  address l engths
  92  
  93       public  static fi nal int AD DR_LEN_INE T      = 4 ;
  94       public  static fi nal int AD DR_LEN_CHA OS     = 2 ;
  95       public  static fi nal int AD DR_LEN_OSI        = 0 ; //means  variable
  96       public  static fi nal int AD DR_LEN_XNS        = 6 ;
  97       public  static fi nal int AD DR_LEN_APP LETALK = 3 ;
  98       public  static fi nal int AD DR_LEN_DEC NET    = 2 ;
  99  
  100       //Host  address t ypes
  101  
  102       public  static fi nal int AD DRTYPE_UNI X      = 1 ;  // Loca l
  103       public  static fi nal int AD DRTYPE_INE T      = 2 ;  // Inte rnet
  104       public  static fi nal int AD DRTYPE_IMP LINK   = 3 ;  // Arpa net
  105       public  static fi nal int AD DRTYPE_PUP        = 4 ;  // PUP
  106       public  static fi nal int AD DRTYPE_CHA OS     = 5 ;  // CHAO S
  107       public  static fi nal int AD DRTYPE_XNS        = 6 ;  // XERO X Network  Services
  108       public  static fi nal int AD DRTYPE_IPX        = 6 ;  // IPX
  109       public  static fi nal int AD DRTYPE_ISO        = 7 ;  // ISO
  110       public  static fi nal int AD DRTYPE_ECM A      = 8 ;  // Euro pean Compu ter Manufa cturers
  111       public  static fi nal int AD DRTYPE_DAT AKIT   = 9 ;  // Data kit
  112       public  static fi nal int AD DRTYPE_CCI TT     = 1 0; // CCIT T
  113       public  static fi nal int AD DRTYPE_SNA        = 1 1; // SNA
  114       public  static fi nal int AD DRTYPE_DEC NET    = 1 2; // DECn et
  115       public  static fi nal int AD DRTYPE_DLI        = 1 3; // Dire ct Data Li nk Interfa ce
  116       public  static fi nal int AD DRTYPE_LAT        = 1 4; // LAT
  117       public  static fi nal int AD DRTYPE_HYL INK    = 1 5; // NSC  Hyperchann el
  118       public  static fi nal int AD DRTYPE_APP LETALK = 1 6; // Appl eTalk
  119       public  static fi nal int AD DRTYPE_NET BIOS   = 1 7; // NetB ios
  120       public  static fi nal int AD DRTYPE_VOI CEVIEW = 1 8; // Voic eView
  121       public  static fi nal int AD DRTYPE_FIR EFOX   = 1 9; // Fire fox
  122       public  static fi nal int AD DRTYPE_BAN        = 2 1; // Bany an
  123       public  static fi nal int AD DRTYPE_ATM        = 2 2; // ATM
  124       public  static fi nal int AD DRTYPE_INE T6     = 2 4; // Inte rnet Proto col V6
  125  
  126       //IP T ransport U DP Port fo r KDC Mess ages
  127  
  128         public sta tic final  int KDC_IN ET_DEFAULT _PORT      
;
  129  
  130       // num ber of ret ries befor e giving u p
  131  
  132       public  static fi nal int KD C_RETRY_LI MIT = 3;
  133       public  static fi nal int KD C_DEFAULT_ UDP_PREF_L IMIT = 146 5;
  134       public  static fi nal int KD C_HARD_UDP _LIMIT = 3 2700;
  135  
  136       //OSI  authentica tion mecha nism OID
  137  
  138       //publ ic static  final int[ ] OSI_AUTH _MECH_TYPE  = { /*iso */ 1, /*or g*/ 3,
  139       //                                                    /*dod*/  5, /*inte rnet*/ 1,  /*security */ 5, /*ke rberosv5*/  2 };
  140  
  141       //Prot ocol const ants and a ssociated  values
  142  
  143       //Key  Types
  144       public  static fi nal int KE YTYPE_NULL  = 0;
  145       public  static fi nal int KE YTYPE_DES   = 1;
  146  
  147       public  static fi nal int KE YTYPE_DES3  = 2;
  148       public  static fi nal int KE YTYPE_AES   = 3;
  149       public  static fi nal int KE YTYPE_ARCF OUR_HMAC =  4;
  150  
  151  
  152       //---- ---------- ---------- ---------- ------+--- ---------- ----
  153       //                        pa data type        |pad ata-type v alue
  154       //---- ---------- ---------- ---------- ------+--- ---------- ----
  155       public  static fi nal int PA _TGS_REQ        = 1;
  156       public  static fi nal int PA _ENC_TIMES TAMP = 2;
  157       public  static fi nal int PA _PW_SALT        = 3;
  158  
  159       // new  preauth t ypes
  160       public  static fi nal int PA _ETYPE_INF O    = 11;
  161       public  static fi nal int PA _ETYPE_INF O2   = 19;
  162  
  163       // S4U 2user info
  164       public  static fi nal int PA _FOR_USER       = 129 ;
  165  
  166       //---- ---------- ---------- -------+-- ---------- -
  167       //auth orization  data type         |ad -type valu e
  168       //---- ---------- ---------- -------+-- ---------- -
  169       //rese rved value s                  0- 63
  170       public  static fi nal int OS F_DCE = 64 ;
  171       public  static fi nal int SE SAME  = 65 ;
  172  
  173       //---- ---------- ---------- ---------- ---------- --+------- ----------
  174       //alte rnate auth entication  type                   |method- type value
  175       //---- ---------- ---------- ---------- ---------- --+------- ----------
  176       //                        re served val ues           0-63
  177       public  static fi nal int AT T_CHALLENG E_RESPONSE  = 64;
  178  
  179       //---- ---------- ---------- ---------- ---------- +--------- ----
  180       //tran sited enco ding type                        |tr-type v alue
  181       //---- ---------- ---------- ---------- ---------- +--------- ----
  182       public  static fi nal int DO MAIN_X500_ COMPRESS =  1;
  183       //                        re served val ues         all other s
  184  
  185       //---- ---------- ---------- ----+----- --+------- ---------- ---------- ---------- ----
  186       //                        La bel |Value   |Meaning
  187       //---- ---------- ---------- ----+----- --+------- ---------- ---------- ---------- ----
  188       public  static fi nal int PV NO = 5;    // current  Kerberos  protocol v ersion num ber
  189       public  static fi nal int AU THNETICATO R_VNO = 5;    // curr ent authen ticator ve rsion numb er
  190       public  static fi nal int TI CKET_VNO =  5;   // c urrent tic ket versio n number
  191  
  192       //mess age types
  193  
  194       // the re are sev eral messa ge sub-com ponents no t included  here
  195       public  static fi nal int KR B_AS_REQ =   10;      //Request  for initia l authenti cation
  196       public  static fi nal int KR B_AS_REP =   11;      //Response  to KRB_AS _REQ reque st
  197       public  static fi nal int KR B_TGS_REQ  = 12;      //Request  for authen tication b ased on TG T
  198       public  static fi nal int KR B_TGS_REP  = 13;      //Response  to KRB_TG S_REQ requ est
  199       public  static fi nal int KR B_AP_REQ =   14;      //applicat ion reques t to serve r
  200       public  static fi nal int KR B_AP_REP =   15;      //Response  to KRB_AP _REQ_MUTUA L
  201       public  static fi nal int KR B_SAFE =     20;      //Safe (ch ecksummed)  applicati on message
  202       public  static fi nal int KR B_PRIV =     21;      //Private  (encrypted ) applicat ion messag e
  203       public  static fi nal int KR B_CRED =     22;      //Private  (encrypted ) message  to forward  credentia ls
  204       public  static fi nal int KR B_ERROR =    30;      //Error re sponse
  205  
  206       //mess age compon ent types
  207  
  208       public  static fi nal int KR B_TKT                 = 1;  //Ti cket
  209       public  static fi nal int KR B_AUTHENTI CATOR      = 2;  //Au thenticato r
  210       public  static fi nal int KR B_ENC_TKT_ PART       = 3;  //En crypted ti cket part
  211       public  static fi nal int KR B_ENC_AS_R EP_PART    = 25; //En crypted in itial auth entication  part
  212       public  static fi nal int KR B_ENC_TGS_ REP_PART   = 26; //En crypted TG S request  part
  213       public  static fi nal int KR B_ENC_AP_R EP_PART    = 27; //En crypted ap plication  request pa rt
  214       public  static fi nal int KR B_ENC_KRB_ PRIV_PART  = 28; //En crypted ap plication  message pa rt
  215       public  static fi nal int KR B_ENC_KRB_ CRED_PART  = 29; //En crypted cr edentials  forward pa rt
  216  
  217  
  218       //erro r codes
  219  
  220       public  static fi nal int KD C_ERR_NONE                   =   0;   //No  error
  221       public  static fi nal int KD C_ERR_NAME _EXP              =   1;   //Cli ent's entr y in datab ase expire d
  222       public  static fi nal int KD C_ERR_SERV ICE_EXP           =   2;   //Ser ver's entr y in datab ase has ex pired
  223       public  static fi nal int KD C_ERR_BAD_ PVNO              =   3;   //Req uested pro tocol vers ion number  not suppo rted
  224       public  static fi nal int KD C_ERR_C_OL D_MAST_KVN O      =   4;   //Cli ent's key  encrypted  in old mas ter key
  225       public  static fi nal int KD C_ERR_S_OL D_MAST_KVN O      =   5;   //Ser ver's key  encrypted  in old mas ter key
  226       public  static fi nal int KD C_ERR_C_PR INCIPAL_UN KNOWN  =   6;   //Cli ent not fo und in Ker beros data base
  227       public  static fi nal int KD C_ERR_S_PR INCIPAL_UN KNOWN  =   7;   //Ser ver not fo und in Ker beros data base
  228       public  static fi nal int KD C_ERR_PRIN CIPAL_NOT_ UNIQUE =   8;   //Mul tiple prin cipal entr ies in dat abase
  229       public  static fi nal int KD C_ERR_NULL _KEY              =   9;   //The  client or  server ha s a null k ey
  230       public  static fi nal int KD C_ERR_CANN OT_POSTDAT E      = 1 0;   //Tic ket not el igible for  postdatin g
  231       public  static fi nal int KD C_ERR_NEVE R_VALID           = 1 1;   //Req uested sta rt time is  later tha n end time
  232       public  static fi nal int KD C_ERR_POLI CY                = 1 2;   //KDC  policy re jects requ est
  233       public  static fi nal int KD C_ERR_BADO PTION             = 1 3;   //KDC  cannot ac commodate  requested  option
  234       public  static fi nal int KD C_ERR_ETYP E_NOSUPP          = 1 4;   //KDC  has no su pport for  encryption  type
  235       public  static fi nal int KD C_ERR_SUMT YPE_NOSUPP        = 1 5;   //KDC  has no su pport for  checksum t ype
  236       public  static fi nal int KD C_ERR_PADA TA_TYPE_NO SUPP   = 1 6;   //KDC  has no su pport for  padata typ e
  237       public  static fi nal int KD C_ERR_TRTY PE_NOSUPP         = 1 7;   //KDC  has no su pport for  transited  type
  238       public  static fi nal int KD C_ERR_CLIE NT_REVOKED        = 1 8;   //Cli ents crede ntials hav e been rev oked
  239       public  static fi nal int KD C_ERR_SERV ICE_REVOKE D      = 1 9;   //Cre dentials f or server  have been  revoked
  240       public  static fi nal int KD C_ERR_TGT_ REVOKED           = 2 0;   //TGT  has been  revoked
  241       public  static fi nal int KD C_ERR_CLIE NT_NOTYET         = 2 1;   //Cli ent not ye t valid -  try again  later
  242       public  static fi nal int KD C_ERR_SERV ICE_NOTYET        = 2 2;   //Ser ver not ye t valid -  try again  later
  243       public  static fi nal int KD C_ERR_KEY_ EXPIRED           = 2 3;   //Pas sword has  expired -  change pas sword to r eset
  244       public  static fi nal int KD C_ERR_PREA UTH_FAILED        = 2 4;   //Pre -authentic ation info rmation wa s invalid
  245       public  static fi nal int KD C_ERR_PREA UTH_REQUIR ED     = 2 5;   //Add itional pr e-authenti cation req uired
  246       public  static fi nal int KR B_AP_ERR_B AD_INTEGRI TY     = 3 1;   //Int egrity che ck on decr ypted fiel d failed
  247       public  static fi nal int KR B_AP_ERR_T KT_EXPIRED        = 3 2;   //Tic ket expire d
  248       public  static fi nal int KR B_AP_ERR_T KT_NYV            = 3 3;   //Tic ket not ye t valid
  249       public  static fi nal int KR B_AP_ERR_R EPEAT             = 3 4;   //Req uest is a  replay
  250       public  static fi nal int KR B_AP_ERR_N OT_US             = 3 5;   //The  ticket is n't for us
  251       public  static fi nal int KR B_AP_ERR_B ADMATCH           = 3 6;   //Tic ket and au thenticato r don't ma tch
  252       public  static fi nal int KR B_AP_ERR_S KEW               = 3 7;   //Clo ck skew to o great
  253       public  static fi nal int KR B_AP_ERR_B ADADDR            = 3 8;   //Inc orrect net  address
  254       public  static fi nal int KR B_AP_ERR_B ADVERSION         = 3 9;   //Pro tocol vers ion mismat ch
  255       public  static fi nal int KR B_AP_ERR_M SG_TYPE           = 4 0;   //Inv alid msg t ype
  256       public  static fi nal int KR B_AP_ERR_M ODIFIED           = 4 1;   //Mes sage strea m modified
  257       public  static fi nal int KR B_AP_ERR_B ADORDER           = 4 2;   //Mes sage out o f order
  258       public  static fi nal int KR B_AP_ERR_B ADKEYVER          = 4 4;   //Spe cified ver sion of ke y is not a vailable
  259       public  static fi nal int KR B_AP_ERR_N OKEY              = 4 5;   //Ser vice key n ot availab le
  260       public  static fi nal int KR B_AP_ERR_M UT_FAIL           = 4 6;   //Mut ual authen tication f ailed
  261       public  static fi nal int KR B_AP_ERR_B ADDIRECTIO N      = 4 7;   //Inc orrect mes sage direc tion
  262       public  static fi nal int KR B_AP_ERR_M ETHOD             = 4 8;   //Alt ernative a uthenticat ion method  required
  263       public  static fi nal int KR B_AP_ERR_B ADSEQ             = 4 9;   //Inc orrect seq uence numb er in mess age
  264       public  static fi nal int KR B_AP_ERR_I NAPP_CKSUM        = 5 0;   //Ina ppropriate  type of c hecksum in  message
  265       public  static fi nal int KR B_ERR_RESP ONSE_TOO_B IG     = 5 2;   //Res ponse too  big for UD P, retry w ith TCP
  266       public  static fi nal int KR B_ERR_GENE RIC               = 6 0;   //Gen eric error  (descript ion in e-t ext)
  267       public  static fi nal int KR B_ERR_FIEL D_TOOLONG         = 6 1;   //Fie ld is too  long for t his implem entation
  268       public  static fi nal int KR B_CRYPTO_N OT_SUPPORT       = 10 0;    //Cl ient does  not suppor t this cry pto type
  269       public  static fi nal int KR B_AP_ERR_N OREALM           = 62 ;
  270       public  static fi nal int KR B_AP_ERR_G EN_CRED          = 63 ;
  271       //  pu blic stati c final in t KRB_AP_E RR_CKSUM_N OKEY           =101;     //Lack  of the key  to genera te the che cksum
  272       // err or codes s pecific to  this impl ementation
  273       public  static fi nal int KR B_AP_ERR_R EQ_OPTIONS  = 101; // Invalid TG S_REQ
  274       public  static fi nal int AP I_INVALID_ ARG                =  400;  //In valid argu ment
  275  
  276       public  static fi nal int BI TSTRING_SI ZE_INVALID         =  500;  //Bi tString si ze does no t match in put byte a rray
  277       public  static fi nal int BI TSTRING_IN DEX_OUT_OF _BOUNDS =  501;  //Bi tString bi t index do es not fal l within s ize
  278       public  static fi nal int BI TSTRING_BA D_LENGTH           =  502;  //Bi tString le ngth is wr ong for th e expected  type
  279  
  280       public  static fi nal int RE ALM_ILLCHA R                  =  600;  //Il legal char acter in r ealm name;  one of: ' /', ':', ' \0'
  281       public  static fi nal int RE ALM_NULL                      =  601;  //Nu ll realm n ame
  282  
  283       public  static fi nal int AS N1_BAD_TIM EFORMAT            =  900;  //In put not in  Generaliz edTime for mat
  284       public  static fi nal int AS N1_MISSING _FIELD             =  901;  //St ructure is  missing a  required  field
  285       public  static fi nal int AS N1_MISPLAC ED_FIELD           =  902;  //Un expected f ield numbe r
  286       public  static fi nal int AS N1_TYPE_MI SMATCH             =  903;  //Ty pe numbers  are incon sistent
  287       public  static fi nal int AS N1_OVERFLO W                  =  904;  //Va lue too la rge
  288       public  static fi nal int AS N1_OVERRUN                    =  905;  //En coding end ed unexpec tedly
  289       public  static fi nal int AS N1_BAD_ID                     =  906;  //Id entifier d oesn't mat ch expecte d value
  290       public  static fi nal int AS N1_BAD_LEN GTH                =  907;  //Le ngth doesn 't match e xpected va lue
  291       public  static fi nal int AS N1_BAD_FOR MAT                =  908;  //Ba dly-format ted encodi ng
  292       public  static fi nal int AS N1_PARSE_E RROR               =  909;  //Pa rse error
  293       public  static fi nal int AS N1_BAD_CLA SS                 =  910;  //Ba d class nu mber
  294       public  static fi nal int AS N1_BAD_TYP E                  =  911;  //Ba d type num ber
  295       public  static fi nal int AS N1_BAD_TAG                    =  912;  //Ba d tag numb er
  296       public  static fi nal int AS N1_UNSUPPO RTED_TYPE          =  913;  //Un supported  ASN.1 type  encounter ed
  297       public  static fi nal int AS N1_CANNOT_ ENCODE             =  914;  //En coding fai led due to  invalid p arameter(s )
  298  
  299       privat e static H ashtable<I nteger,Str ing> errMs gList;
  300  
  301       public  static St ring getEr rorMessage (int i) {
  302           re turn errMs gList.get( i);
  303       }
  304  
  305  
  306       public  static fi nal boolea n DEBUG =
  307           ja va.securit y.AccessCo ntroller.d oPrivilege d(
  308                  new su n.security .action.Ge tBooleanAc tion("sun. security.k rb5.debug" ));
  309       public  static fi nal sun.mi sc.HexDump Encoder he xDumper =
  310           ne w sun.misc .HexDumpEn coder();
  311  
  312       static  {
  313           er rMsgList =  new Hasht able<Integ er,String>  ();
  314           er rMsgList.p ut(KDC_ERR _NONE, "No  error");
  315           er rMsgList.p ut(KDC_ERR _NAME_EXP,  "Client's  entry in  database e xpired");
  316           er rMsgList.p ut(KDC_ERR _SERVICE_E XP, "Serve r's entry  in databas e has expi red");
  317           er rMsgList.p ut(KDC_ERR _BAD_PVNO,  "Requeste d protocol  version n umber not  supported" );
  318           er rMsgList.p ut(KDC_ERR _C_OLD_MAS T_KVNO, "C lient's ke y encrypte d in old m aster key" );
  319           er rMsgList.p ut(KDC_ERR _S_OLD_MAS T_KVNO, "S erver's ke y encrypte d in old m aster key" );
  320           er rMsgList.p ut(KDC_ERR _C_PRINCIP AL_UNKNOWN , "Client  not found  in Kerbero s database ");
  321           er rMsgList.p ut(KDC_ERR _S_PRINCIP AL_UNKNOWN , "Server  not found  in Kerbero s database ");
  322           er rMsgList.p ut(KDC_ERR _PRINCIPAL _NOT_UNIQU E, "Multip le princip al entries  in databa se");
  323           er rMsgList.p ut(KDC_ERR _NULL_KEY,  "The clie nt or serv er has a n ull key");
  324           er rMsgList.p ut(KDC_ERR _CANNOT_PO STDATE, "T icket not  eligible f or postdat ing");
  325           er rMsgList.p ut(KDC_ERR _NEVER_VAL ID, "Reque sted start  time is l ater than  end time") ;
  326           er rMsgList.p ut(KDC_ERR _POLICY, " KDC policy  rejects r equest");
  327           er rMsgList.p ut(KDC_ERR _BADOPTION , "KDC can not accomm odate requ ested opti on");
  328           er rMsgList.p ut(KDC_ERR _ETYPE_NOS UPP, "KDC  has no sup port for e ncryption  type");
  329           er rMsgList.p ut(KDC_ERR _SUMTYPE_N OSUPP, "KD C has no s upport for  checksum  type");
  330           er rMsgList.p ut(KDC_ERR _PADATA_TY PE_NOSUPP,  "KDC has  no support  for padat a type");
  331           er rMsgList.p ut(KDC_ERR _TRTYPE_NO SUPP, "KDC  has no su pport for  transited  type");
  332           er rMsgList.p ut(KDC_ERR _CLIENT_RE VOKED, "Cl ients cred entials ha ve been re voked");
  333           er rMsgList.p ut(KDC_ERR _SERVICE_R EVOKED, "C redentials  for serve r have bee n revoked" );
  334           er rMsgList.p ut(KDC_ERR _TGT_REVOK ED, "TGT h as been re voked");
  335           er rMsgList.p ut(KDC_ERR _CLIENT_NO TYET, "Cli ent not ye t valid -  try again  later");
  336           er rMsgList.p ut(KDC_ERR _SERVICE_N OTYET, "Se rver not y et valid -  try again  later");
  337           er rMsgList.p ut(KDC_ERR _KEY_EXPIR ED, "Passw ord has ex pired - ch ange passw ord to res et");
  338           er rMsgList.p ut(KDC_ERR _PREAUTH_F AILED, "Pr e-authenti cation inf ormation w as invalid ");
  339           er rMsgList.p ut(KDC_ERR _PREAUTH_R EQUIRED, " Additional  pre-authe ntication  required") ;
  340           er rMsgList.p ut(KRB_AP_ ERR_BAD_IN TEGRITY, " Integrity  check on d ecrypted f ield faile d");
  341           er rMsgList.p ut(KRB_AP_ ERR_TKT_EX PIRED, "Ti cket expir ed");
  342           er rMsgList.p ut(KRB_AP_ ERR_TKT_NY V, "Ticket  not yet v alid");
  343           er rMsgList.p ut(KRB_AP_ ERR_REPEAT , "Request  is a repl ay");
  344           er rMsgList.p ut(KRB_AP_ ERR_NOT_US , "The tic ket isn't  for us");
  345           er rMsgList.p ut(KRB_AP_ ERR_BADMAT CH, "Ticke t and auth enticator  don't matc h");
  346           er rMsgList.p ut(KRB_AP_ ERR_SKEW,  "Clock ske w too grea t");
  347           er rMsgList.p ut(KRB_AP_ ERR_BADADD R, "Incorr ect net ad dress");
  348           er rMsgList.p ut(KRB_AP_ ERR_BADVER SION, "Pro tocol vers ion mismat ch");
  349           er rMsgList.p ut(KRB_AP_ ERR_MSG_TY PE, "Inval id msg typ e");
  350           er rMsgList.p ut(KRB_AP_ ERR_MODIFI ED, "Messa ge stream  modified") ;
  351           er rMsgList.p ut(KRB_AP_ ERR_BADORD ER, "Messa ge out of  order");
  352           er rMsgList.p ut(KRB_AP_ ERR_BADKEY VER, "Spec ified vers ion of key  is not av ailable");
  353           er rMsgList.p ut(KRB_AP_ ERR_NOKEY,  "Service  key not av ailable");
  354           er rMsgList.p ut(KRB_AP_ ERR_MUT_FA IL, "Mutua l authenti cation fai led");
  355           er rMsgList.p ut(KRB_AP_ ERR_BADDIR ECTION, "I ncorrect m essage dir ection");
  356           er rMsgList.p ut(KRB_AP_ ERR_METHOD , "Alterna tive authe ntication  method req uired");
  357           er rMsgList.p ut(KRB_AP_ ERR_BADSEQ , "Incorre ct sequenc e number i n message" );
  358           er rMsgList.p ut(KRB_AP_ ERR_INAPP_ CKSUM, "In appropriat e type of  checksum i n message" );
  359           er rMsgList.p ut(KRB_ERR _RESPONSE_ TOO_BIG, " Response t oo big for  UDP, retr y with TCP ");
  360           er rMsgList.p ut(KRB_ERR _GENERIC,  "Generic e rror (desc ription in  e-text)") ;
  361           er rMsgList.p ut(KRB_ERR _FIELD_TOO LONG, "Fie ld is too  long for t his implem entation") ;
  362           er rMsgList.p ut(KRB_AP_ ERR_NOREAL M, "Realm  name not a vailable") ; //used i n setDefau ltCreds()  in sun.sec urity.krb5 .Credentia ls
  363  
  364           //  error mes sages spec ific to th is impleme ntation
  365  
  366           er rMsgList.p ut(API_INV ALID_ARG,  "Invalid a rgument");
  367  
  368           er rMsgList.p ut(BITSTRI NG_SIZE_IN VALID, "Bi tString si ze does no t match in put byte a rray");
  369           er rMsgList.p ut(BITSTRI NG_INDEX_O UT_OF_BOUN DS, "BitSt ring bit i ndex does  not fall w ithin size ");
  370           er rMsgList.p ut(BITSTRI NG_BAD_LEN GTH, "BitS tring leng th is wron g for the  expected t ype");
  371  
  372           er rMsgList.p ut(REALM_I LLCHAR, "I llegal cha racter in  realm name ; one of:  '/', ':',  '\0'");
  373           er rMsgList.p ut(REALM_N ULL, "Null  realm nam e");
  374  
  375           er rMsgList.p ut(ASN1_BA D_TIMEFORM AT, "Input  not in Ge neralizedT ime format ");
  376           er rMsgList.p ut(ASN1_MI SSING_FIEL D, "Struct ure is mis sing a req uired fiel d");
  377           er rMsgList.p ut(ASN1_MI SPLACED_FI ELD, "Unex pected fie ld number" );
  378           er rMsgList.p ut(ASN1_TY PE_MISMATC H, "Type n umbers are  inconsist ent");
  379           er rMsgList.p ut(ASN1_OV ERFLOW, "V alue too l arge");
  380           er rMsgList.p ut(ASN1_OV ERRUN, "En coding end ed unexpec tedly");
  381           er rMsgList.p ut(ASN1_BA D_ID, "Ide ntifier do esn't matc h expected  value");
  382           er rMsgList.p ut(ASN1_BA D_LENGTH,  "Length do esn't matc h expected  value");
  383           er rMsgList.p ut(ASN1_BA D_FORMAT,  "Badly-for matted enc oding");
  384           er rMsgList.p ut(ASN1_PA RSE_ERROR,  "Parse er ror");
  385           er rMsgList.p ut(ASN1_BA D_CLASS, " Bad class  number");
  386           er rMsgList.p ut(ASN1_BA D_TYPE, "B ad type nu mber");
  387           er rMsgList.p ut(ASN1_BA D_TAG, "Ba d tag numb er");
  388           er rMsgList.p ut(ASN1_UN SUPPORTED_ TYPE, "Uns upported A SN.1 type  encountere d");
  389           er rMsgList.p ut(ASN1_CA NNOT_ENCOD E, "Encodi ng failed  due to inv alid param eter(s)");
  390           er rMsgList.p ut(KRB_CRY PTO_NOT_SU PPORT, "Cl ient has n o support  for crypto  type");
  391           er rMsgList.p ut(KRB_AP_ ERR_REQ_OP TIONS, "In valid opti on setting  in ticket  request." );
  392           er rMsgList.p ut(KRB_AP_ ERR_GEN_CR ED, "Fail  to create  credential .");
  393       }
  394  
  395   }