Authenticator接口只有下面一个方法,它完成的是用户信息的认证:
public AuthenticationInfo authenticate(AuthenticationToken authenticationToken)
throws AuthenticationException;
Authenticator接口详解
本文介绍了一个重要的认证接口——Authenticator接口。此接口只有一个方法:authenticate,用于验证用户的认证信息。该方法接受AuthenticationToken类型的参数,并返回AuthenticationInfo类型的数据。如果认证过程中出现异常,则会抛出AuthenticationException。
Authenticator接口只有下面一个方法,它完成的是用户信息的认证:
public AuthenticationInfo authenticate(AuthenticationToken authenticationToken)
throws AuthenticationException;

被折叠的 条评论
为什么被折叠?