Produced by Araxis Merge on 9/15/2018 10:48:15 PM 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 | MHV_2018.4.0.0.zip\2018.4.0.0\national portal\mhv_source\mhv_liferay\mhv-saml-attribute-ext\src\main\java\gov\va\med\mhv\liferay\saml\profile | MhvSingleLogoutProfileImpl.java | Thu Aug 23 21:31:40 2018 UTC |
| 2 | MHV_2018.4.0.0.zip\2018.4.0.0\national portal\mhv_source\mhv_liferay\mhv-saml-attribute-ext\src\main\java\gov\va\med\mhv\liferay\saml\profile | MhvSingleLogoutProfileImpl.java | Sat Sep 15 21:55:05 2018 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 100 |
| 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 | * | |
| 3 | */ | |
| 4 | package go v.va.med.m hv.liferay .saml.prof ile; | |
| 5 | ||
| 6 | import jav ax.servlet .http.Http ServletReq uest; | |
| 7 | import jav ax.servlet .http.Http ServletRes ponse; | |
| 8 | ||
| 9 | import org .opensaml. common.bin ding.SAMLM essageCont ext; | |
| 10 | import org .opensaml. saml2.core .LogoutReq uest; | |
| 11 | import org .opensaml. saml2.core .LogoutRes ponse; | |
| 12 | import org .opensaml. saml2.core .NameID; | |
| 13 | ||
| 14 | import com .liferay.s aml.profil e.SingleLo goutProfil eImpl; | |
| 15 | ||
| 16 | import gov .va.med.mh v.liferay. saml.aal.A ccountActi vityClient ; | |
| 17 | ||
| 18 | /** | |
| 19 | * @author DNS | |
| 20 | * | |
| 21 | */ | |
| 22 | public cla ss MhvSing leLogoutPr ofileImpl extends Si ngleLogout ProfileImp l { | |
| 23 | ||
| 24 | pr ivate stat ic final S tring SESS ION_USERPR OFILE_ID = "LIFERAY_ SHARED_use rprofileid "; | |
| 25 | pr ivate stat ic final S tring SESS ION_MHV_AP I_TOKEN = "LIFERAY_S HARED_api_ token"; | |
| 26 | pr ivate stat ic final S tring AAL_ ACTIVITY = "Logout"; | |
| 27 | pr ivate stat ic final S tring AAL_ ACTION = " Logout for %s."; | |
| 28 | pr ivate stat ic final S tring AAL_ ACTOR = "S elf"; | |
| 29 | ||
| 30 | pr ivate Acco untActivit yClient aa lClient = null; | |
| 31 | ||
| 32 | @O verride | |
| 33 | pr otected vo id process SingleLogo utRequest( HttpServle tRequest r equest, Ht tpServletR esponse re sponse, SAMLMess ageContext <LogoutReq uest, Logo utResponse , NameID> samlMessag eContext) | |
| 34 | thro ws Excepti on { | |
| 35 | ||
| 36 | Stri ng entityI d = samlMe ssageConte xt.getPeer EntityId() ; | |
| 37 | Obje ct userPro fileId = ( Long)reque st.getSess ion().getA ttribute(S ESSION_USE RPROFILE_I D); | |
| 38 | Obje ct apiToke n = (Strin g)request. getSession ().getAttr ibute(SESS ION_MHV_AP I_TOKEN); | |
| 39 | ||
| 40 | if(u serProfile Id != null && apiTok en != null ) { | |
| 41 | aalCli ent.create AccountAct ivity((Lon g)userProf ileId, AAL _ACTOR, tr ue, AAL_AC TIVITY, St ring.forma t(AAL_ACTI ON, entity Id), entit yId, (Stri ng)apiToke n); | |
| 42 | } | |
| 43 | ||
| 44 | supe r.processS ingleLogou tRequest(r equest, re sponse, sa mlMessageC ontext); | |
| 45 | } | |
| 46 | ||
| 47 | pu blic void setAalClie nt(Account ActivityCl ient aalCl ient) { | |
| 48 | this .aalClient = aalClie nt; | |
| 49 | } | |
| 50 | ||
| 51 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.