/* 78 */ RequestCtx requestCtx = null;
/* 79 */ Principal principal = request.getUserPrincipal();
/* 80 */ String username = principal.getName();
/* */
/* 82 */ URI subjectAttrUri = new URI("urn:oasis:names:tc:xacml:1.0:subject:subject-id");
/* 83 */ Attribute subjectAttr = new Attribute(subjectAttrUri, null, null, new StringAttribute(username));
/* */
/* 85 */ Set subjectAttrSet = new HashSet();
/* 86 */ subjectAttrSet.add(subjectAttr);
/* 87 */ subjectAttrSet.addAll(getXACMLRoleSet(roles));
/* */
/* 89 */ Set subjectSet = new HashSet();
/* 90 */ subjectSet.add(new Subject(subjectAttrSet));
/* */
/* 93 */ URI resourceUri = new URI("urn:oasis:names:tc:xacml:1.0:resource:resource-id");
/* 94 */ Attribute resourceAttr = new Attribute(resourceUri, null, null, new AnyURIAttribute(new URI(request.getRequestURI())));
/* */
/* 96 */ Set resourceSet = new HashSet();
/* 97 */ resourceSet.add(resourceAttr);
/* */
/* 100 */ Set actionSet = new HashSet();
/* 101 */ actionSet.add(new Attribute(new URI("urn:oasis:names:tc:xacml:1.0:action:action-id"), null, null, new StringAttribute(action)));
/* */
/* 104 */ Enumeration enumer = request.getParameterNames();
/* 105 */ while (enumer.hasMoreElements())
/* */ {
/* 107 */ String paramName = (String)enumer.nextElement();
/* 108 */ String paramValue = request.getParameter(paramName);
/* 109 */ URI actionUri = new URI(actionURIBase + paramName);
/* 110 */ Attribute actionAttr = new Attribute(actionUri, null, null, new StringAttribute(paramValue));
/* */
/* 112 */ actionSet.add(actionAttr);
/* */ }
/* */
/* 115 */ Set environSet = new HashSet();
/* */
/* 117 */ URI currentTimeUri = new URI("urn:oasis:names:tc:xacml:1.0:environment:current-time");
/* 118 */ Attribute currentTimeAttr = new Attribute(currentTimeUri, null, null, new TimeAttribute());
/* */
/* 120 */ environSet.add(currentTimeAttr);
/* */
/* 123 */ requestCtx = new RequestCtx(subjectSet, resourceSet, actionSet, environSet);
/* */