All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.mizhousoft.security.limiter.AuthFailureLimiter Maven / Gradle / Ivy

There is a newer version: 1.1.1
Show newest version
package com.mizhousoft.security.limiter;

import com.mizhousoft.security.exception.AuthenticationException;

/**
 * 认证失败限制器
 *
 * @version
 */
public interface AuthFailureLimiter
{
	/**
	 * 获取许可
	 * 
	 * @param entity
	 * @throws AuthenticationException
	 */
	void tryAcquire(String entity) throws AuthenticationException;

	/**
	 * 认证失败
	 * 
	 * @param entity
	 */
	int authcFailure(String entity);

	/**
	 * 清除
	 * 
	 * @param entity
	 */
	void clear(String entity);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy