Produced by Araxis Merge on 12/5/2017 12:06:46 PM Central Standard 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 | IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\ImagingVistaRealm\main\integration\java\gov\va\med\imaging\exchange\realm\tomcat | VistaRealmTest.java | Mon Dec 4 21:35:24 2017 UTC |
| 2 | IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\ImagingVistaRealm\main\integration\java\gov\va\med\imaging\exchange\realm\tomcat | VistaRealmTest.java | Mon Dec 4 22:03:39 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 116 |
| 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 | package go v.va.med.i maging.exc hange.real m.tomcat; | |
| 2 | ||
| 3 | import gov .va.med.im aging.tomc at.vistare alm.VistaA ccessVerif yRealm; | |
| 4 | import gov .va.med.im aging.tomc at.vistare alm.VistaR ealmPrinci pal; | |
| 5 | import gov .va.med.im aging.tomc at.vistare alm.VistaR ealmSecuri tyContext; | |
| 6 | ||
| 7 | import jav a.security .Principal ; | |
| 8 | ||
| 9 | import jun it.framewo rk.TestCas e; | |
| 10 | ||
| 11 | import org .apache.ca talina.Lif ecycleExce ption; | |
| 12 | import org .apache.lo gging.log4 j.LogManag er; | |
| 13 | import org .apache.lo gging.log4 j.Logger; | |
| 14 | ||
| 15 | /** | |
| 16 | * | |
| 17 | * @author
|
|
| 18 | * | |
| 19 | */ | |
| 20 | public cla ss VistaRe almTest | |
| 21 | extends Te stCase | |
| 22 | { | |
| 23 | pr ivate Logg er logger = LogManag er.getLogg er(this.ge tClass()); | |
| 24 | ||
| 25 | pu blic Vista RealmTest( ) | |
| 26 | { | |
| 27 | supe r(); | |
| 28 | } | |
| 29 | ||
| 30 | pu blic void testAuthen ticateStri ngString() | |
| 31 | th rows Lifec ycleExcept ion | |
| 32 | { | |
| 33 | Prin cipal p = null; | |
| 34 | Vist aAccessVer ifyRealm r ealm = new VistaAcce ssVerifyRe alm(); | |
| 35 | real m.setSiteN umber("660 "); | |
| 36 | real m.setSiteA bbreviatio n("SLC"); | |
| 37 | real m.setSiteN ame("Salt Lake City, UT"); | |
| 38 | real m.setVista Server("lo calhost"); | |
| 39 | real m.setVista Port(9300) ; | |
| 40 | real m.start(); | |
| 41 | ||
| 42 | Syst em.out.pri ntln("Auth enticating 'boating' "); | |
| 43 | p = realm.auth enticate(" boating1", "boating1 ."); | |
| 44 | Syst em.out.pri ntln("User 'boating' " + (p != null ? "a uthenticat ed" : "not authentic ated") ); | |
| 45 | asse rtNotNull( p); | |
| 46 | if(p !=null) | |
| 47 | { | |
| 48 | VistaR ealmPrinci pal thread Principal = VistaRea lmSecurity Context.ge t(); | |
| 49 | assert Equals(p, threadPrin cipal); | |
| 50 | } | |
| 51 | ||
| 52 | Syst em.out.pri ntln("Auth enticating 'access'" ); | |
| 53 | p = realm.auth enticate(" access", " verify"); | |
| 54 | Syst em.out.pri ntln("User 'access' " + (p != null ? "au thenticate d" : "not authentica ted") ); | |
| 55 | asse rtNull(p); | |
| 56 | ||
| 57 | real m.stop(); | |
| 58 | } | |
| 59 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.