Produced by Araxis Merge on 6/11/2019 10:54:13 AM Eastern 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.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | HTRE_P3_v14.5_iter_4_build_14.zip\java\gov\va\med\fw\model | HashSummary.java | Wed May 29 15:26:00 2019 UTC |
| 2 | HTRE_P3_v14.5_iter_4_build_14.zip\java\gov\va\med\fw\model | HashSummary.java | Mon Jun 10 19:30:05 2019 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 194 |
| Changed | 1 | 2 |
| Inserted | 0 | 0 |
| Removed | 0 | 0 |
| 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 |
No regular expressions were active.
| 1 | /********* ********** ********** ********** ********** ********** ********* | |
| 2 | * Copyrii ght 2009 V HA. All ri ghts reser ved | |
| 3 | ********* ********** ********** ********** ********** ********** *********/ | |
| 4 | ||
| 5 | package go v.va.med.f w.model; | |
| 6 | ||
| 7 | import jav a.io.Seria lizable; | |
| 8 | import jav a.security .MessageDi gest; | |
| 9 | ||
| 10 | import gov .va.med.fw .util.Stri ngUtils; | |
| 11 | ||
| 12 | ||
| 13 | /** | |
| 14 | * TODO - Add doco h ere | |
| 15 | * | |
| 16 | * Origina l Author - DN S
|
|
| 17 | * Creatio n Date - N ov 6, 2009 12:05:33 PM | |
| 18 | */ | |
| 19 | public cla ss HashSum mary imple ments Seri alizable { | |
| 20 | /* * | |
| 21 | * | |
| 22 | * / | |
| 23 | pr ivate stat ic final l ong serial VersionUID = -111238 9637275043 740L; | |
| 24 | pr ivate stat ic final S tring STRI NG_TOKEN = "::"; | |
| 25 | pr ivate Stri ng hash; | |
| 26 | pr ivate Stri ng algorit hm = null; | |
| 27 | pr ivate Stri ng provide rName = nu ll; | |
| 28 | pr ivate Stri ng provide rInfo = nu ll; | |
| 29 | pr ivate doub le provide rVersion; | |
| 30 | ||
| 31 | pu blic HashS ummary(Str ing hash, MessageDig est digest ) { | |
| 32 | this .hash = ha sh; | |
| 33 | this .algorithm = digest. getAlgorit hm(); | |
| 34 | this .providerN ame = dige st.getProv ider().get Name(); | |
| 35 | this .providerI nfo = dige st.getProv ider().get Info(); | |
| 36 | this .providerV ersion = d igest.getP rovider(). getVersion (); | |
| 37 | } | |
| 38 | ||
| 39 | pr ivate Hash Summary(St ring hash) { | |
| 40 | this .hash = ha sh; | |
| 41 | } | |
| 42 | ||
| 43 | /* * | |
| 44 | * @return t he hash | |
| 45 | * / | |
| 46 | pu blic Strin g getHash( ) { | |
| 47 | retu rn hash; | |
| 48 | } | |
| 49 | ||
| 50 | /* * | |
| 51 | * @return t he algorit hm | |
| 52 | * / | |
| 53 | pu blic Strin g getAlgor ithm() { | |
| 54 | retu rn algorit hm; | |
| 55 | } | |
| 56 | ||
| 57 | /* * | |
| 58 | * @return t he provide rName | |
| 59 | * / | |
| 60 | pu blic Strin g getProvi derName() { | |
| 61 | retu rn provide rName; | |
| 62 | } | |
| 63 | ||
| 64 | /* * | |
| 65 | * @return t he provide rInfo | |
| 66 | * / | |
| 67 | pu blic Strin g getProvi derInfo() { | |
| 68 | retu rn provide rInfo; | |
| 69 | } | |
| 70 | ||
| 71 | /* * | |
| 72 | * @return t he provide rVersion | |
| 73 | * / | |
| 74 | pu blic doubl e getProvi derVersion () { | |
| 75 | retu rn provide rVersion; | |
| 76 | } | |
| 77 | ||
| 78 | pu blic Strin g getHashS ummary() { | |
| 79 | retu rn algorit hm + STRIN G_TOKEN + providerNa me + STRIN G_TOKEN + | |
| 80 | provid erVersion + STRING_T OKEN + has h; | |
| 81 | } | |
| 82 | ||
| 83 | pu blic Strin g toString () { | |
| 84 | retu rn getHash Summary(); | |
| 85 | } | |
| 86 | ||
| 87 | pu blic stati c HashSumm ary valueO f(String h ashSummary ) { | |
| 88 | if(S tringUtils .isEmpty(h ashSummary )) | |
| 89 | return null; | |
| 90 | ||
| 91 | Stri ng[] token s = hashSu mmary.spli t(STRING_T OKEN); | |
| 92 | Hash Summary su mmary = ne w HashSumm ary(tokens [3]); | |
| 93 | summ ary.algori thm = toke ns[0]; | |
| 94 | summ ary.provid erName = t okens[1]; | |
| 95 | summ ary.provid erVersion = Double.v alueOf(tok ens[2]); | |
| 96 | retu rn summary ; | |
| 97 | } | |
| 98 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.