src/main/java/fr/xebia/springframework/security/core/providers/ExtendedDaoAuthenticationProvider.java
/**
     * Returns <code>true</code> if the given <code>ipAddress</code> matches one
     * of the given <code>allowedIpAddresses</code> or if the given
     * <code>allowedIpAddresses</code> list is empty.
     */
Returns true if the given ipAddress matches one
of the given allowedIpAddresses or if the given
allowedIpAddresses list is empty.
Returns true if the given ipAddress matches one of the given allowedIpAddresses or if the given allowedIpAddresses list is empty .
protected boolean matchesOneAddress(String ipAddress, List<Pattern> allowedIpAddresses) {
        if (allowedIpAddresses.isEmpty()) {
            return true;
        }
        for (Pattern allowedIpAddress : allowedIpAddresses) {
            if (allowedIpAddress.matcher(ipAddress).matches()) {
                return true;
            }
        }
        return false;
    }
protected boolean matchesOneAddress ( String ipAddress , List < Pattern > allowedIpAddresses ) { if ( allowedIpAddresses . isEmpty ( ) ) { return true ; } for ( Pattern allowedIpAddress : allowedIpAddresses ) { if ( allowedIpAddress . matcher ( ipAddress ) . matches ( ) ) { return true ; } } return false ; }
Returns <code>true</code> if the given <code>ipAddress</code> matches one
 of the given <code>allowedIpAddresses</code> or if the given
 <code>allowedIpAddresses</code> list is empty.
Returns <code > true< / code > if the given <code > ipAddress< / code > matches one of the given <code > allowedIpAddresses< / code > or if the given <code > allowedIpAddresses< / code > list is empty .