131. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 9/25/2018 2:13:04 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.

131.1 Files compared

# Location File Last Modified
1 build 3.zip\build 3\MHLTH_YS_137_Source\JavaScript\resources\javaJDF-1.8.0\src\com\sun\org\apache\xml\internal\security\encryption AgreementMethod.java Mon Jan 22 14:46:50 2018 UTC
2 build 3.zip\build 3\MHLTH_YS_137_Source\JavaScript\resources\javaJDF-1.8.0\src\com\sun\org\apache\xml\internal\security\encryption AgreementMethod.java Wed Sep 12 16:37:34 2018 UTC

131.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 12 290
Changed 11 24
Inserted 0 0
Removed 0 0

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

131.4 Active regular expressions

No regular expressions were active.

131.5 Comparison detail

  1   /*
  2    * reserve d comment  block
  3    * DO NOT  REMOVE OR  ALTER!
  4    */
  5   /**
  6    * License d to the A pache Soft ware Found ation (ASF ) under on e
  7    * or more  contribut or license  agreement s. See the  NOTICE fi le
  8    * distrib uted with  this work  for additi onal infor mation
  9    * regardi ng copyrig ht ownersh ip. The AS F licenses  this file
  10    * to you  under the  Apache Lic ense, Vers ion 2.0 (t he
  11    * "Licens e"); you m ay not use  this file  except in  complianc e
  12    * with th e License.  You may o btain a co py of the  License at
  13    *
  14    * http:// www.apache .org/licen ses/LICENS E-2.0
  15    *
  16    * Unless  required b y applicab le law or  agreed to  in writing ,
  17    * softwar e distribu ted under  the Licens e is distr ibuted on  an
  18    * "AS IS"  BASIS, WI THOUT WARR ANTIES OR  CONDITIONS  OF ANY
  19    * KIND, e ither expr ess or imp lied. See  the Licens e for the
  20    * specifi c language  governing  permissio ns and lim itations
  21    * under t he License .
  22    */
  23   package co m.sun.org. apache.xml .internal. security.e ncryption;
  24  
  25   import jav a.util.Ite rator;
  26   import com .sun.org.a pache.xml. internal.s ecurity.ke ys.KeyInfo ;
  27   import org .w3c.dom.E lement;
  28  
  29   /**
  30    * A Key A greement a lgorithm p rovides fo r the deri vation of  a shared  PW        key
  31    * based o n a shared   PW        computed f rom certai n types of  compatibl e public
  32    * keys fr om both th e sender a nd the rec ipient. In formation  from the o riginator
  33    * to dete rmine the  PW        is indicat ed by an o ptional Or iginatorKe yInfo
  34    * paramet er child o f an <code >Agreement Method</co de> elemen t while th at
  35    * associa ted with t he recipie nt is indi cated by a n optional  Recipient KeyInfo. A
  36    * shared  key is der ived from  this share PW        by a metho d determin ed by the
  37    * Key Agr eement alg orithm.
  38    * <p>
  39    * <b>Note :</b> XML  Encryption  does not  provide an  on-line k ey agreeme nt
  40    * negotia tion proto col. The < code>Agree mentMethod </code> el ement can  be used by
  41    * the ori ginator to  identify  the keys a nd computa tional pro cedure tha t were
  42    * used to  obtain a  shared enc ryption ke y. The met hod used t o obtain o r select
  43    * the key s or algor ithm used  for the ag reement co mputation  is beyond  the scope
  44    * of this  specifica tion.
  45    * <p>
  46    * The <co de>Agreeme ntMethod</ code> elem ent appear s as the c ontent of  a
  47    * <code>d s:KeyInfo< /code> sin ce, like o ther <code >ds:KeyInf o</code> c hildren,
  48    * it yiel ds a key.  This <code >ds:KeyInf o</code> i s in turn  a child of  an
  49    * <code>E ncryptedDa ta</code>  or <code>E ncryptedKe y</code> e lement. Th e
  50    * Algorit hm attribu te and Key Size child  of the <c ode>Encryp tionMethod </code>
  51    * element  under thi s <code>En cryptedDat a</code> o r <code>En cryptedKey </code>
  52    * element  are impli cit parame ters to th e key agre ement comp utation. I n cases
  53    * where t his <code> Encryption Method</co de> algori thm <code> URI</code>  is
  54    * insuffi cient to d etermine t he key len gth, a Key Size MUST  have been  included.
  55    * In addi tion, the  sender may  place a K A-Nonce el ement unde r
  56    * <code>A greementMe thod</code > to assur e that dif ferent key ing materi al is
  57    * generat ed even fo r repeated  agreement s using th e same sen der and re cipient
  58    * public  keys.
  59    * <p>
  60    * If the  agreed key  is being  used to wr ap a key,  then
  61    * <code>A greementMe thod</code > would ap pear insid e a <code> ds:KeyInfo </code>
  62    * inside  an <code>E ncryptedKe y</code> e lement.
  63    * <p>
  64    * The Sch ema for Ag reementMet hod is as  follows:
  65    * <xmp>
  66    * <elemen t name="Ag reementMet hod" type= "xenc:Agre ementMetho dType"/>
  67    * <comple xType name ="Agreemen tMethodTyp e" mixed=" true">
  68    *     <se quence>
  69    *          <element  name="KA-N once" minO ccurs="0"  type="base 64Binary"/ >
  70    *          <!-- <ele ment ref=" ds:DigestM ethod" min Occurs="0" /> -->
  71    *          <any name space="##o ther" minO ccurs="0"  maxOccurs= "unbounded "/>
  72    *          <element  name="Orig inatorKeyI nfo" minOc curs="0" t ype="ds:Ke yInfoType" />
  73    *          <element  name="Reci pientKeyIn fo" minOcc urs="0" ty pe="ds:Key InfoType"/ >
  74    *     </s equence>
  75    *     <at tribute na me="Algori thm" type= "anyURI" u se="requir ed"/>
  76    * </compl exType>
  77    * </xmp>
  78    *
  79    * @author  Axl Matth eus
  80    */
  81   public int erface Agr eementMeth od {
  82  
  83       /**
  84        * Ret urns a <co de>byte</c ode> array .
  85        * @re turn a <co de>byte</c ode> array .
  86        */
  87       byte[]  getKANonc e();
  88  
  89       /**
  90        * Set s the KANo nce.jj
  91        * @pa ram kanonc e
  92        */
  93       void s etKANonce( byte[] kan once);
  94  
  95       /**
  96        * Ret urns addit ional info rmation re garding th e <code>Ag reementMet hod</code> .
  97        * @re turn addit ional info rmation re garding th e <code>Ag reementMet hod</code> .
  98        */
  99       Iterat or<Element > getAgree mentMethod Informatio n();
  100  
  101       /**
  102        * Add s addition al <code>A greementMe thod</code > informat ion.
  103        *
  104        * @pa ram info a  <code>Ele ment</code > that rep resents ad ditional i nformation
  105        * spe cified by
  106        *   < xmp>
  107        *      <any name space="##o ther" minO ccurs="0"  maxOccurs= "unbounded "/>
  108        *   < /xmp>
  109        */
  110       void a ddAgreemen tMethodInf ormation(E lement inf o);
  111  
  112       /**
  113        * Rem oves addit ional <cod e>Agreemen tMethod</c ode> infor mation.
  114        *
  115        * @pa ram info a  <code>Ele ment</code > that rep resents ad ditional i nformation
  116        * spe cified by
  117        *   < xmp>
  118        *      <any name space="##o ther" minO ccurs="0"  maxOccurs= "unbounded "/>
  119        *   < /xmp>
  120        */
  121       void r evoveAgree mentMethod Informatio n(Element  info);
  122  
  123       /**
  124          * Returns  informatio n relating  to the or iginator's  shared  PW      .
  125        *
  126          * @return  informatio n relating  to the or iginator's  shared  PW      .
  127        */
  128       KeyInf o getOrigi natorKeyIn fo();
  129  
  130       /**
  131          * Sets the  informati on relatin g to the o riginator' s shared  PW      .
  132        *
  133          * @param k eyInfo inf ormation r elating to  the origi nator's sh ared  PW      .
  134        */
  135       void s etOriginat orKeyInfo( KeyInfo ke yInfo);
  136  
  137       /**
  138          * Returns  informatio n relating  to the re cipient's  shared  PW      .
  139        *
  140          * @return  informatio n relating  to the re cipient's  shared  PW      .
  141        */
  142       KeyInf o getRecip ientKeyInf o();
  143  
  144       /**
  145          * Sets the  informati on relatin g to the r ecipient's  shared  PW      .
  146        *
  147          * @param k eyInfo inf ormation r elating to  the recip ient's sha red  PW      .
  148        */
  149       void s etRecipien tKeyInfo(K eyInfo key Info);
  150  
  151       /**
  152        * Ret urns the a lgorithm U RI of this  <code>Cry ptographic Method</co de>.
  153        *
  154        * @re turn the a lgorithm U RI of this  <code>Cry ptographic Method</co de>
  155        */
  156       String  getAlgori thm();
  157   }