The AuthenticationListener interface implements authentication monitoring, which is first parsed as follows:
1. Successful authentication
void onSuccess(AuthenticationToken token, AuthenticationInfo info);
2. Authentication failed
void onFailure(AuthenticationToken token, AuthenticationException ae);
3. subject exit
void onLogout(PrincipalCollection principals);