170. EPMO Open Source Coordination Office Redaction File Detail Report

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

170.1 Files compared

# Location File Last Modified
1 build 3.zip\build 3\MHLTH_YS_137_Source\JavaScript\resources\javaJDF-1.8.0\src\java\security\cert LDAPCertStoreParameters.java Mon Jan 22 14:46:52 2018 UTC
2 build 3.zip\build 3\MHLTH_YS_137_Source\JavaScript\resources\javaJDF-1.8.0\src\java\security\cert LDAPCertStoreParameters.java Wed Sep 12 17:12:50 2018 UTC

170.2 Comparison summary

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

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

170.4 Active regular expressions

No regular expressions were active.

170.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   package ja va.securit y.cert;
  27  
  28   /**
  29    * Paramet ers used a s input fo r the LDAP  {@code Ce rtStore} a lgorithm.
  30    * <p>
  31    * This cl ass is use d to provi de necessa ry configu ration par ameters (s erver
  32    * name an d port num ber) to im plementati ons of the  LDAP {@co de CertSto re}
  33    * algorit hm.
  34    * <p>
  35    * <b>Conc urrent Acc ess</b>
  36    * <p>
  37    * Unless  otherwise  specified,  the metho ds defined  in this c lass are n ot
  38    * thread- safe. Mult iple threa ds that ne ed to acce ss a singl e
  39    * object  concurrent ly should  synchroniz e amongst  themselves  and
  40    * provide  the neces sary locki ng. Multip le threads  each mani pulating
  41    * separat e objects  need not s ynchronize .
  42    *
  43    * @since        1.4
  44    * @author       Stev e Hanna
  45    * @see          Cert Store
  46    */
  47   public cla ss LDAPCer tStorePara meters imp lements Ce rtStorePar ameters {
  48  
  49         private st atic final  int LDAP_ DEFAULT_PO RT       
;
  50  
  51       /**
  52        * the  port numb er of the  LDAP serve r
  53        */
  54       privat e int port ;
  55  
  56       /**
  57        * the  DNS name  of the LDA P server
  58        */
  59       privat e String s erverName;
  60  
  61       /**
  62        * Cre ates an in stance of  {@code LDA PCertStore Parameters } with the
  63        * spe cified par ameter val ues.
  64        *
  65        * @pa ram server Name the D NS name of  the LDAP  server
  66        * @pa ram port t he port nu mber of th e LDAP ser ver
  67        * @ex ception Nu llPointerE xception i f {@code s erverName}  is
  68        * {@c ode null}
  69        */
  70       public  LDAPCertS toreParame ters(Strin g serverNa me, int po rt) {
  71           if  (serverNa me == null )
  72                throw ne w NullPoin terExcepti on();
  73           th is.serverN ame = serv erName;
  74           th is.port =  port;
  75       }
  76  
  77       /**
  78        * Cre ates an in stance of  {@code LDA PCertStore Parameters } with the
  79        * spe cified ser ver name a nd a defau lt port of  389.
  80        *
  81        * @pa ram server Name the D NS name of  the LDAP  server
  82        * @ex ception Nu llPointerE xception i f {@code s erverName}  is
  83        * {@c ode null}
  84        */
  85       public  LDAPCertS toreParame ters(Strin g serverNa me) {
  86           th is(serverN ame, LDAP_ DEFAULT_PO RT);
  87       }
  88  
  89       /**
  90        * Cre ates an in stance of  {@code LDA PCertStore Parameters } with the
  91        * def ault param eter value s (server  name "loca lhost", po rt 389).
  92        */
  93       public  LDAPCertS toreParame ters() {
  94           th is("localh ost", LDAP _DEFAULT_P ORT);
  95       }
  96  
  97       /**
  98        * Ret urns the D NS name of  the LDAP  server.
  99        *
  100        * @re turn the n ame (not { @code null })
  101        */
  102       public  String ge tServerNam e() {
  103           re turn serve rName;
  104       }
  105  
  106       /**
  107        * Ret urns the p ort number  of the LD AP server.
  108        *
  109        * @re turn the p ort number
  110        */
  111       public  int getPo rt() {
  112           re turn port;
  113       }
  114  
  115       /**
  116        * Ret urns a cop y of this  object. Ch anges to t he copy wi ll not aff ect
  117        * the  original  and vice v ersa.
  118        * <p>
  119        * Not e: this me thod curre ntly perfo rms a shal low copy o f the obje ct
  120        * (si mply calls  {@code Ob ject.clone ()}). This  may be ch anged in a
  121        * fut ure revisi on to perf orm a deep  copy if n ew paramet ers are ad ded
  122        * tha t should n ot be shar ed.
  123        *
  124        * @re turn the c opy
  125        */
  126       public  Object cl one() {
  127           tr y {
  128                return s uper.clone ();
  129           }  catch (Clo neNotSuppo rtedExcept ion e) {
  130                /* Canno t happen * /
  131                throw ne w Internal Error(e.to String(),  e);
  132           }
  133       }
  134  
  135       /**
  136        * Ret urns a for matted str ing descri bing the p arameters.
  137        *
  138        * @re turn a for matted str ing descri bing the p arameters
  139        */
  140       public  String to String() {
  141           St ringBuffer  sb = new  StringBuff er();
  142           sb .append("L DAPCertSto reParamete rs: [\n");
  143  
  144           sb .append("   serverNam e: " + ser verName +  "\n");
  145           sb .append("   port: " +  port + "\ n");
  146           sb .append("] ");
  147           re turn sb.to String();
  148       }
  149   }