Examples of IpWhiteList


Examples of com.alu.e3.prov.restapi.model.IpWhiteList

    return b;
  }

  private static IpWhiteList fromDataModelToIpWhiteListAuth(AuthDetail authDetail) {
    if (authDetail==null) throw new IllegalArgumentException("authDetail must not be null");
    IpWhiteList i = new IpWhiteList();
    i.getIp().addAll  (authDetail.getWhiteListedIps());
    return i;
  }
View Full Code Here

Examples of com.alu.e3.prov.restapi.model.IpWhiteList

    return i;
  }

  private static IpWhiteList fromDataModelToIpWhiteListApi(Api apiDetail) {
    if (apiDetail==null) throw new IllegalArgumentException("apiDetail must not be null");
    IpWhiteList i = new IpWhiteList();
    i.getIp().addAll  (apiDetail.getWhiteListedIps());
    return i;
  }
View Full Code Here

Examples of com.alu.e3.prov.restapi.model.IpWhiteList

            error.setErrorText("authKey must not be empty for AuthKey authentication type.")
          }
        }
      }
      else if(authType.equals(AuthType.IP_WHITE_LIST)){
        IpWhiteList ipWhiteListAuth = auth.getIpWhiteListAuth();
        if(ipWhiteListAuth == null) {
          inError = true;
          error.setErrorText("Request did not contain ipWhiteListAuth info.");             
        } else {
          // We don't check for null ipList here, but could ....
          List<String> ipList = ipWhiteListAuth.getIp();
          // Check for duplicate white-list ips by adding all members of list to a Set
          Set<String> testSet = new HashSet<String>();
          for (String ip : ipList) {
            if (testSet.contains(ip)) {
              if(LOG.isDebugEnabled())
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.