fedletXACMLResp.jsp revision 9740fa737ef2ed9453ab46d145777dbbbf6a747b
851N/A 1) Retrieves the list of attributes from fedletXACMLQuery.jsp
493N/A<%@ page import="com.sun.identity.saml2.common.SAML2Utils" %>
810N/A<%@ page import="com.sun.identity.saml2.profile.XACMLQueryUtil" %>
493N/A<%@ page import="org.owasp.esapi.ESAPI" %>
493N/A String deployuri = request.getRequestURI();
810N/A int slashLoc = deployuri.indexOf("/", 1);
810N/A deployuri = deployuri.substring(0, slashLoc);
810N/A <link rel="stylesheet" type="text/css" href="<%= deployuri %>/com_sun_web_ui/css/css_ns6up.css" />
810N/A<div class="MstDiv"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="MstTblTop" title="">
493N/A<div class="MstDivTtl"><img name="ProdName" src="<%= deployuri %>/console/images/PrimaryProductName.png" alt="" /></div></td><td class="MstTdLogo" width="1%"><img name="RMRealm.mhCommon.BrandLogo" src="<%= deployuri %>/com_sun_web_ui/images/other/javalogo.gif" alt="Java(TM) Logo" border="0" height="55" width="31" /></td></tr></tbody></table>
851N/A<table class="MstTblEnd" border="0" cellpadding="0" cellspacing="0" width="100%"><tbody><tr><td><img name="RMRealm.mhCommon.EndorserLogo" src="<%= deployuri %>/com_sun_web_ui/images/masthead/masthead-sunname.gif" alt="Sun(TM) Microsystems,
851N/AInc." align="right" border="0" height="10" width="108" /></td></tr></tbody></table></div><div class="SkpMedGry1"><a name="SkipAnchor2089" id="SkipAnchor2089"></a></div>
851N/A<div class="SkpMedGry1"><a href="#SkipAnchor4928"><img src="<%= deployuri %>/com_sun_web_ui/images/other/dot.gif" alt="Jump Over Tab Navigation Area. Current Selection is: Access Control" border="0" height="1" width="1" /></a></div>
851N/A String idpEntityID = request.getParameter("idpEntityID");
851N/A (idpEntityID.length() == 0)) {
493N/A SAML2Utils.bundle.getString("nullIDPEntityID"));
493N/A String spEntityID = request.getParameter("spEntityID");
493N/A (spEntityID.length() == 0)) {
493N/A SAML2Utils.bundle.getString("nullSPEntityID"));
493N/A String nameIDValue = request.getParameter("nameIDValue");
810N/A String newNameIDValue = nameIDValue.replace("%2F","/");
810N/A String resource = request.getParameter("resource");
810N/A if (!ESAPI.validator().isValidInput("HTTP Parameter Value: " + resource,
493N/A String action = request.getParameter("action");
493N/A String policy_decision = XACMLQueryUtil.getPolicyDecisionForFedlet(
851N/A if(resource!=null) resource = ESAPI.encoder().encodeForHTML(resource);
851N/A out.println("<tr>");
851N/A out.println("<td>");
851N/A out.println(resource);
851N/A out.println("</td>");
851N/A out.println("<td>");
851N/A out.println(policy_decision);
851N/A out.println("</td>");
810N/A SAML2Utils.debug.error("Error sending XACML Query " , ex);