Package com.google.gsa.proxy.auth.ipaddress

Examples of com.google.gsa.proxy.auth.ipaddress.IPAddresses


                         e);
        }
        //Check if the sender is in between the IP Addresses
        String remoteAddress = httpRequest.getRemoteAddr();
        logger.debug("The remote address is: " + remoteAddress);
        IPAddresses sourceIPAddress = new IPAddresses(remoteAddress);

        if (!ipAddressChecker.isIPAddressIncluded(sourceIPAddress)) {
            logger.warn("The remote IP Address is not included in the permitted list");
            return HttpServletResponse.SC_UNAUTHORIZED;
        }
View Full Code Here


                                 ipAddressArray.length);
                    for (int i = 0; i < ipAddressArray.length; i++) {
                        logger.debug("Adding new IP Address [" +
                                     ipAddressArray[i] + "]");

                        IPAddresses ipAddresses =
                            new IPAddresses(cleanIPAddress(ipAddressArray[i]));
                        ipAddressChecker.addAddress(ipAddresses);
                    }
                }
            } catch (Exception ex) {
                logger.error("Error when reading IP Addresses: " +
View Full Code Here

TOP

Related Classes of com.google.gsa.proxy.auth.ipaddress.IPAddresses

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.