Package javax.security.jacc

Examples of javax.security.jacc.PolicyContextException


   synchronized ContextPolicy getContextPolicy(String contextID)
      throws PolicyContextException
   {
      ContextPolicy policy = (ContextPolicy) openPolicies.get(contextID);
      if (policy == null)
         throw new PolicyContextException("No ContextPolicy exists for contextID=" + contextID);
      return policy;
   }
View Full Code Here


            if (pcf == null) {
                try {
                    pcf = PolicyConfigurationFactory.getPolicyConfigurationFactory();
                } catch (ClassNotFoundException cnfe) {
                    _logger.severe("jaccfactory.notfound");
                    throw new PolicyContextException(cnfe);
                } catch (PolicyContextException pce) {
                    _logger.severe("jaccfactory.notfound");
                    throw pce;
                }
            }
View Full Code Here

            if (pcf == null) {
                try {
                    pcf = PolicyConfigurationFactory.getPolicyConfigurationFactory();
                } catch (ClassNotFoundException cnfe) {
                    _logger.severe("jaccfactory.notfound");
                    throw new PolicyContextException(cnfe);
                } catch (PolicyContextException pce) {
                    _logger.severe("jaccfactory.notfound");
                    throw pce;
                }
            }
View Full Code Here

            if (pcf == null) {
                try {
                    pcf = PolicyConfigurationFactory.getPolicyConfigurationFactory();
                } catch (ClassNotFoundException cnfe) {
                    _logger.severe("jaccfactory.notfound");
                    throw new PolicyContextException(cnfe);
                } catch (PolicyContextException pce) {
                    _logger.severe("jaccfactory.notfound");
                    throw pce;
                }
            }
View Full Code Here

   synchronized ContextPolicy getContextPolicy(String contextID)
      throws PolicyContextException
   {
      ContextPolicy policy = (ContextPolicy) openPolicies.get(contextID);
      if (policy == null)
         throw new PolicyContextException("No ContextPolicy exists for contextID=" + contextID);
      return policy;
   }
View Full Code Here

    public GeronimoPolicyConfiguration getGeronimoPolicyConfiguration(String contextID) throws PolicyContextException {
        GeronimoPolicyConfiguration configuration = configurations.get(contextID);

        if (configuration == null) {
            throw new PolicyContextException("No policy configuration registered for contextID: " + contextID);
        }

        log.trace("Get policy configuration " + contextID);
        return configuration;
    }
View Full Code Here

/* 211 */       this.configStateMachine.nextState(action);
/*     */     }
/*     */     catch (IllegalTransitionException e)
/*     */     {
/* 215 */       log.debug("validateState failure", e);
/* 216 */       throw new PolicyContextException("Operation not allowed", e);
/*     */     }
/*     */   }
View Full Code Here

/*     */   synchronized ContextPolicy getContextPolicy(String contextID)
/*     */     throws PolicyContextException
/*     */   {
/* 302 */     ContextPolicy policy = (ContextPolicy)this.openPolicies.get(contextID);
/* 303 */     if (policy == null)
/* 304 */       throw new PolicyContextException("No ContextPolicy exists for contextID=" + contextID);
/* 305 */     return policy;
/*     */   }
View Full Code Here

/*  79 */           factoryName = action.getName();
/*  80 */           Exception e = ex.getException();
/*  81 */           if ((e instanceof ClassNotFoundException)) {
/*  82 */             throw ((ClassNotFoundException)e);
/*     */           }
/*  84 */           throw new PolicyContextException("Failure during load of class: " + action.getName(), e);
/*     */         }
/*     */
/*  87 */         factory = (PolicyConfigurationFactory)clazz.newInstance();
/*     */       }
/*     */       catch (ClassNotFoundException e)
/*     */       {
/*  91 */         String msg = "Failed to find PolicyConfigurationFactory : " + factoryName;
/*  92 */         throw new ClassNotFoundException(msg, e);
/*     */       }
/*     */       catch (IllegalAccessException e)
/*     */       {
/*  96 */         String msg = "Unable to access class : " + factoryName;
/*  97 */         throw new PolicyContextException(msg, e);
/*     */       }
/*     */       catch (InstantiationException e)
/*     */       {
/* 101 */         String msg = "Failed to create instance of: " + factoryName;
/* 102 */         throw new PolicyContextException(msg, e);
/*     */       }
/*     */       catch (ClassCastException e)
/*     */       {
/* 106 */         StringBuffer msg = new StringBuffer(factoryName + " Is not a PolicyConfigurationFactory, ");
/* 107 */         msg.append("PCF.class.CL: " + Ejb3PolicyConfigurationFactory.class.getClassLoader());
View Full Code Here

         configStateMachine.nextState(action);
      }
      catch(IllegalTransitionException e)
      {
         log.debug("validateState failure", e);
         throw new PolicyContextException("Operation not allowed", e);
      }
   }
View Full Code Here

TOP

Related Classes of javax.security.jacc.PolicyContextException

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.