List of usage examples for com.amazonaws.auth.policy.conditions IpAddressCondition IpAddressCondition
public IpAddressCondition(String ipAddressRange)
From source file:org.apache.usergrid.apm.service.AWSUtil.java
License:Apache License
public static IpAddressCondition[] getIPAddressRangeWhiteList() { String[] ipWhiteList = DeploymentConfig.geDeploymentConfig().getIpAddressWhiteList(); IpAddressCondition[] ipAddressConditions = null; if (ipWhiteList != null) { ipAddressConditions = new IpAddressCondition[ipWhiteList.length]; for (int i = 0; i < ipWhiteList.length; i++) { ipAddressConditions[i] = new IpAddressCondition(ipWhiteList[i]); }/* w w w . j av a2 s . com*/ } return ipAddressConditions; }