Method invoked by the ModularAuthenticator just prior to the realm being consulted for account data,
allowing pre-authentication-attempt logic for that realm only.
<p>This method returns an {@code AuthenticationInfo} object that will be used for further interaction with realms. Most
implementations will merely return the {@code aggregate} method argument if they don't have a need to
manipulate it.
@param realm the realm that will be consulted for {@code AuthenticationInfo} for the specified {@code token}.
@param token the {@code AuthenticationToken} submitted for the subject attempting system log-in.
@param aggregate the aggregated AuthenticationInfo object being used across the multi-realm authentication attempt
@return the AuthenticationInfo object that will be presented to further realms in the authentication process - returning
the {@code aggregate} method argument is the normal case if no special action needs to be taken.
@throws hunt.shiro.authc.AuthenticationException
an exception thrown by the Strategy implementation if it wishes the login
process for the associated subject (user) to stop immediately.
Method invoked by the ModularAuthenticator just prior to the realm being consulted for account data, allowing pre-authentication-attempt logic for that realm only.
<p>This method returns an {@code AuthenticationInfo} object that will be used for further interaction with realms. Most implementations will merely return the {@code aggregate} method argument if they don't have a need to manipulate it.
@param realm the realm that will be consulted for {@code AuthenticationInfo} for the specified {@code token}. @param token the {@code AuthenticationToken} submitted for the subject attempting system log-in. @param aggregate the aggregated AuthenticationInfo object being used across the multi-realm authentication attempt @return the AuthenticationInfo object that will be presented to further realms in the authentication process - returning the {@code aggregate} method argument is the normal case if no special action needs to be taken. @throws hunt.shiro.authc.AuthenticationException an exception thrown by the Strategy implementation if it wishes the login process for the associated subject (user) to stop immediately.