com.eshore.uas.extensions.CodeAttack Maven / Gradle / Ivy
package com.eshore.uas.extensions;
import java.util.List;
/**
* 检查是否在爆破
* @author eshore
*
*/
public interface CodeAttack {
/**
* 是否阻止
* @param code code
* @param ip ip
* @return is prevent
*/
boolean prevent(String code,String ip);
/**
*
* @param code code
* @param password passowrd
* @param ip ip
* @param pass pass
*/
void doTry(String code,String password,String ip,boolean pass);
List listFails();
List listBlockIps();
void blockIP(String ip);
void removeAccount(String account);
void removeIp(String account);
boolean isBlockIp(String ip);
}