Examples of verifyIPAddress()


Examples of com.adito.security.SystemDatabase.verifyIPAddress()

        String[] id = request.getParameterValues("id");
        if (id != null) {   
            IpRestriction[] ipRestrictions = findRemainingIpRestrictions(id);
            SystemDatabase database = SystemDatabaseFactory.getInstance();
            String remoteAddr = request.getRemoteAddr();
            boolean isValid = database.verifyIPAddress(remoteAddr, ipRestrictions);
            return mapping.findForward(isValid ? "confirmDelete" : "confirmDeleteWithLockout");
        }
        return mapping.findForward("refresh");
    }
   
View Full Code Here

Examples of com.adito.security.SystemDatabase.verifyIPAddress()

   
    private boolean isAdditionValid(HttpServletRequest request, IpRestrictionForm form) throws Exception {
        IpRestriction[] ipRestrictions = findIpRestrictions(form.getRestriction().getAddress(), form.getType().equals(IpRestrictionForm.ALLOW_TYPE));
        SystemDatabase database = SystemDatabaseFactory.getInstance();
        String remoteAddr = request.getRemoteAddr();
        return database.verifyIPAddress(remoteAddr, ipRestrictions);
    }

    private IpRestriction[] findIpRestrictions(String restriction, boolean isAllow) throws Exception {
        SystemDatabase database = SystemDatabaseFactory.getInstance();
        IpRestriction[] restrictions = database.getIpRestrictions();
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.