Reacts to the successful login attempt by first always {@link #forgetIdentity(Subject) forgetting} any previously
stored identity. Then if the {@code token}
{@link #isRememberMe(hunt.shiro.authc.AuthenticationToken) is a RememberMe} token, the associated identity
will be {@link #rememberIdentity(hunt.shiro.subject.Subject, hunt.shiro.authc.AuthenticationToken, hunt.shiro.authc.AuthenticationInfo) remembered}
for later retrieval during a new user session.
@param subject the subject for which the principals are being remembered.
@param token the token that resulted in a successful authentication attempt.
@param info the authentication info resulting from the successful authentication attempt.
Reacts to the successful login attempt by first always {@link #forgetIdentity(Subject) forgetting} any previously stored identity. Then if the {@code token} {@link #isRememberMe(hunt.shiro.authc.AuthenticationToken) is a RememberMe} token, the associated identity will be {@link #rememberIdentity(hunt.shiro.subject.Subject, hunt.shiro.authc.AuthenticationToken, hunt.shiro.authc.AuthenticationInfo) remembered} for later retrieval during a new user session.
@param subject the subject for which the principals are being remembered. @param token the token that resulted in a successful authentication attempt. @param info the authentication info resulting from the successful authentication attempt.