Package org.jboss.security.authorization

Examples of org.jboss.security.authorization.PolicyRegistration


      //decision of the realm base holds.
      if (baseDecision && !ignoreJBossAuthorization)
      {
         Subject caller = this.establishSubjectContext(request.getPrincipal());

         PolicyRegistration policyRegistration = getPolicyRegistration();

         SecurityContext sc = SecurityAssociationActions.getSecurityContext();
         Map<String, Object> contextMap = new HashMap<String, Object>();
         contextMap.put(ResourceKeys.RESOURCE_PERM_CHECK, Boolean.TRUE);
         contextMap.put(ResourceKeys.POLICY_REGISTRATION, policyRegistration);
View Full Code Here


      audit(AuditLevel.ERROR, cmap, e);
   }

   private PolicyRegistration getPolicyRegistration()
   {
      PolicyRegistration policyRegistration = null;
      try
      {
         policyRegistration = (PolicyRegistration) (new InitialContext()).lookup("java:/policyRegistration");
      }
      catch (Exception e)
View Full Code Here

      return inv.getAdvisor().resolveAnnotation(Stateless.class) != null;
   }
  
   private PolicyRegistration getPolicyRegistration()
   {
      PolicyRegistration policyRegistration = null;
      try
      {
         InitialContext ic = new InitialContext();
         policyRegistration = (PolicyRegistration) ic.lookup("java:/policyRegistration");
      }
View Full Code Here

      //decision of the realm base holds.
      if (baseDecision)
      {
         Subject caller = this.establishSubjectContext(request.getPrincipal());

         PolicyRegistration policyRegistration = getPolicyRegistration();

         SecurityContext sc = SecurityAssociationActions.getSecurityContext();
         Map<String, Object> contextMap = new HashMap<String, Object>();
         contextMap.put(ResourceKeys.RESOURCE_PERM_CHECK, Boolean.TRUE);
         contextMap.put(ResourceKeys.POLICY_REGISTRATION, policyRegistration);
View Full Code Here

      audit(AuditLevel.ERROR, cmap, e);
   }

   private PolicyRegistration getPolicyRegistration()
   {
      PolicyRegistration policyRegistration = null;
      try
      {
         policyRegistration = (PolicyRegistration) (new InitialContext()).lookup("java:/policyRegistration");
      }
      catch (Exception e)
View Full Code Here

      return inv.getAdvisor().resolveAnnotation(Stateless.class) != null;
   }
  
   private PolicyRegistration getPolicyRegistration()
   {
      PolicyRegistration policyRegistration = null;
      try
      {
         InitialContext ic = new InitialContext();
         policyRegistration = (PolicyRegistration) ic.lookup("java:/policyRegistration");
      }
View Full Code Here

    *         fails.
    */
   public static PolicyRegistration getPolicyRegistration()
   {
      String lookupURL = "java:/policyRegistration";
      PolicyRegistration registration = null;
      try
      {
         InitialContext ic = new InitialContext();
         registration = (PolicyRegistration) ic.lookup(lookupURL);
      }
View Full Code Here

      return inv.getAdvisor().resolveAnnotation(Stateless.class) != null;
   }
  
   private PolicyRegistration getPolicyRegistration()
   {
      PolicyRegistration policyRegistration = null;
      try
      {
         InitialContext ic = new InitialContext();
         policyRegistration = (PolicyRegistration) ic.lookup("java:/policyRegistration");
      }
View Full Code Here

                                   srset);
   }
  
   private PolicyRegistration getPolicyRegistration()
   {
      PolicyRegistration policyRegistration = null;
      try
      {
         InitialContext ic = new InitialContext();
         policyRegistration = (PolicyRegistration) ic.lookup("java:/policyRegistration");
      }
View Full Code Here

                                   srset);
   }
  
   private PolicyRegistration getPolicyRegistration()
   {
      PolicyRegistration policyRegistration = null;
      try
      {
         InitialContext ic = new InitialContext();
         policyRegistration = (PolicyRegistration) ic.lookup("java:/policyRegistration");
      }
View Full Code Here

TOP

Related Classes of org.jboss.security.authorization.PolicyRegistration

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.