246. 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.

246.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\ktab KeyTabEntry.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\ktab KeyTabEntry.java Wed Sep 12 17:52:48 2018 UTC

246.2 Comparison summary

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

246.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

246.4 Active regular expressions

No regular expressions were active.

246.5 Comparison detail

  1   /*
  2    * DO NOT  ALTER OR R EMOVE COPY RIGHT NOTI CES OR THI S FILE HEA DER.
  3    *
  4    * This co de is free  software;  you can r edistribut e it and/o r modify i t
  5    * under t he terms o f the GNU  General Pu blic Licen se version  2 only, a s
  6    * publish ed by the  Free Softw are Founda tion.  Ora cle design ates this
  7    * particu lar file a s subject  to the "Cl asspath" e xception a s provided
  8    * by Orac le in the  LICENSE fi le that ac companied  this code.
  9    *
  10    * This co de is dist ributed in  the hope  that it wi ll be usef ul, but WI THOUT
  11    * ANY WAR RANTY; wit hout even  the implie d warranty  of MERCHA NTABILITY  or
  12    * FITNESS  FOR A PAR TICULAR PU RPOSE.  Se e the GNU  General Pu blic Licen se
  13    * version  2 for mor e details  (a copy is  included  in the LIC ENSE file  that
  14    * accompa nied this  code).
  15    *
  16    * You sho uld have r eceived a  copy of th e GNU Gene ral Public  License v ersion
  17    * 2 along  with this  work; if  not, write  to the Fr ee Softwar e Foundati on,
  18    * Inc., 5 1 Franklin  St, Fifth  Floor, Bo ston, MA 0 2110-1301  USA.
  19    *
  20    * Please  contact Or acle, 500  Oracle Par kway, Redw ood Shores , CA 94065  USA
  21    * or visi t www.orac le.com if  you need a dditional  informatio n or have  any
  22    * questio ns.
  23    */
  24  
  25   /*
  26    *
  27    *  (C) Co pyright IB M Corp. 19 99 All Rig hts Reserv ed.
  28    *  Copyri ght 1997 T he Open Gr oup Resear ch Institu te.  All r ights rese rved.
  29    */
  30  
  31   package su n.security .krb5.inte rnal.ktab;
  32  
  33   import sun .security. krb5.*;
  34   import sun .security. krb5.inter nal.*;
  35   import jav a.io.Unsup portedEnco dingExcept ion;
  36  
  37   /**
  38    * This cl ass repres ents a Key  Table ent ry. Each e ntry conta ins the se rvice prin cipal of
  39    * the key , time sta mp, key ve rsion and  PW        key itself .
  40    *
  41    * @author  Yanni Zha ng
  42    */
  43   public cla ss KeyTabE ntry imple ments KeyT abConstant s {
  44       Princi palName se rvice;
  45       Realm  realm;
  46       Kerber osTime tim estamp;
  47       int ke yVersion;
  48       int ke yType;
  49       byte[]  keyblock  = null;
  50       boolea n DEBUG =  Krb5.DEBUG ;
  51  
  52       public  KeyTabEnt ry (Princi palName ne w_service,  Realm new _realm, Ke rberosTime  new_time,
  53                             int ne w_keyVersi on, int ne w_keyType,  byte[] ne w_keyblock ) {
  54           se rvice = ne w_service;
  55           re alm = new_ realm;
  56           ti mestamp =  new_time;
  57           ke yVersion =  new_keyVe rsion;
  58           ke yType = ne w_keyType;
  59           if  (new_keyb lock != nu ll) {
  60                keyblock  = new_key block.clon e();
  61           }
  62       }
  63  
  64       public  Principal Name getSe rvice() {
  65           re turn servi ce;
  66       }
  67  
  68       public  Encryptio nKey getKe y() {
  69           En cryptionKe y key = ne w Encrypti onKey(keyb lock,
  70                                                     keyT ype,
  71                                                     new  Integer(ke yVersion)) ;
  72           re turn key;
  73       }
  74  
  75       public  String ge tKeyString () {
  76           St ringBuffer  sb = new  StringBuff er("0x");
  77           fo r (int i =  0; i < ke yblock.len gth; i++)  {
  78                sb.appen d(String.f ormat("%02 x", keyblo ck[i]&0xff ));
  79           }
  80           re turn sb.to String();
  81       }
  82       public  int entry Length() {
  83           in t totalPri ncipalLeng th = 0;
  84           St ring[] nam es = servi ce.getName Strings();
  85           fo r (int i =  0; i < na mes.length ; i++) {
  86                try {
  87                    tota lPrincipal Length +=  principalS ize + name s[i].getBy tes("8859_ 1").length ;
  88                } catch  (Unsupport edEncoding Exception  exc) {
  89                }
  90           }
  91  
  92           in t realmLen  = 0;
  93           tr y {
  94                realmLen  = realm.t oString(). getBytes(" 8859_1").l ength;
  95           }  catch (Uns upportedEn codingExce ption exc)  {
  96           }
  97  
  98           in t size = p rincipalCo mponentSiz e +  realm Size + rea lmLen
  99                + totalP rincipalLe ngth + pri ncipalType Size
  100                + timest ampSize +  keyVersion Size
  101                + keyTyp eSize + ke ySize + ke yblock.len gth;
  102  
  103           if  (DEBUG) {
  104                System.o ut.println (">>> KeyT abEntry: k ey tab ent ry size is  " + size) ;
  105           }
  106           re turn size;
  107       }
  108  
  109       public  KerberosT ime getTim eStamp() {
  110           re turn times tamp;
  111       }
  112   }