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

cn.featherfly.authorities.authentication.Authenticator Maven / Gradle / Ivy

There is a newer version: 1.0.0
Show newest version
package cn.featherfly.authorities.authentication;

import cn.featherfly.authorities.Actor;

/**
 * 认证者.
 *
 * @param  泛型,用于具体行动者的定义
 * @param  泛型,用于具体依赖环境的定义
 * @author 钟冀
 */
public interface Authenticator {
    /**
     * 认证. 认证失败抛出AuthenticationException异常.
     *
     * @param actor          行动者
     * @param authentication 鉴定模式
     * @param env            依赖环境
     */
    void authenticate(A actor, Authentication authentication, E env);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy