Examples of IAuthExecutor


Examples of com.alu.e3.auth.executor.IAuthExecutor

    AuthType reportAuth = null;
   
    Iterator<IAuthExecutor> it = executors.iterator();
    while(!isAllowed && it.hasNext()) {
     
      IAuthExecutor executor = it.next();
      AuthReport authReport = executor.checkAllowed(exchange, api)
      isAllowed = authReport.isAllowed();
     
      if (isAllowed) {
        authIdentity = authReport.getAuthIdentity();
        report = authReport;
      } else {
        if (report == null) {
          report = authReport;
          reportAuth = executor.getType();
        } else {
          if (report.compareTo(authReport) > 0) {
            report = authReport;
            reportAuth = executor.getType();
          }
        }
      }
      // The last executor
      authType = executor.getType();
    }
   
    if (isAllowed) {
      if(logger.isDebugEnabled()) {
        logger.debug("Request allowed to use this Api");
View Full Code Here

Examples of com.alu.e3.auth.executor.IAuthExecutor

      while (it.hasNext()) {
          Map.Entry<String, IAuthExecutorFactory> pairs = it.next();
      if(parameters.containsKey(pairs.getKey())){
        Boolean key = getAndRemoveParameter(parameters, pairs.getKey(), Boolean.class);
        if(key != null && key.equals(Boolean.TRUE)){
          IAuthExecutor executor = pairs.getValue().getExecutor(this, parameters);
          executors.add(executor);
        }
      }
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.