Package com.sun.xacml

Examples of com.sun.xacml.Policy


/* 125 */     WebXACMLUtil util = new WebXACMLUtil();
/*     */     try
/*     */     {
/* 128 */       RequestCtx requestCtx = util.createXACMLRequest(request, am, am.getUserRoles(userP));
/* 129 */       String contextID = PolicyContext.getContextID();
/* 130 */       Policy policy = (Policy)this.policyRegistration.getPolicy(contextID, null);
/* 131 */       if (policy == null)
/* 132 */         throw new IllegalStateException("Missing xacml policy for contextid:" + contextID);
/* 133 */       result = JBossXACMLUtil.checkXACMLAuthorization(requestCtx, policy);
/*     */     }
/*     */     catch (Exception e)
View Full Code Here


               this.ejbMethod.getName(),this.principal,
               am.getUserRoles(principal));
         String contextID = PolicyContext.getContextID();
         if(contextID == null)
            throw new IllegalStateException("Context ID is null");
         Policy policy = (Policy)policyRegistration.getPolicy(contextID,null);
         if(policy == null)
         {
            if(trace)
               log.trace("Policy obtained is null for contextID:"+contextID);
            throw new IllegalStateException("Missing xacml policy for contextid:"+contextID);
View Full Code Here

   public void registerPolicy(String contextID, InputStream stream)
   {
      try
     
         Element elm = DOMUtils.parse(stream);
         Policy policy = Policy.getInstance(elm);
         this.contextIdToPolicy.put(contextID, policy);
      }
      catch(Exception e)
      {
         log.debug("Error in registering xacml policy:",e);
View Full Code Here

   public void registerPolicy(String contextID, InputStream stream)
   {
      try
     
         Element elm = DOMUtils.parse(stream);
         Policy policy = Policy.getInstance(elm);
         this.contextIdToPolicy.put(contextID, policy);
      }
      catch(Exception e)
      {
         log.debug("Error in registering xacml policy:",e);
View Full Code Here

TOP

Related Classes of com.sun.xacml.Policy

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.