Performs a login attempt for this Subject/user. If unsuccessful,
an {@link AuthenticationException} is thrown, the subclass of which identifies why the attempt failed.
If successful, the account data associated with the submitted principals/credentials will be
associated with this {@code Subject} and the method will return quietly.
<p/>
Upon returning quietly, this {@code Subject} instance can be considered
authenticated and {@link #getPrincipal() getPrincipal()} will be non-null and
{@link #isAuthenticated() isAuthenticated()} will be {@code true}.
@param token the token encapsulating the subject's principals and credentials to be passed to the
Authentication subsystem for verification.
@throws hunt.shiro.authc.AuthenticationException
if the authentication attempt fails.
Performs a login attempt for this Subject/user. If unsuccessful, an {@link AuthenticationException} is thrown, the subclass of which identifies why the attempt failed. If successful, the account data associated with the submitted principals/credentials will be associated with this {@code Subject} and the method will return quietly. <p/> Upon returning quietly, this {@code Subject} instance can be considered authenticated and {@link #getPrincipal() getPrincipal()} will be non-null and {@link #isAuthenticated() isAuthenticated()} will be {@code true}.
@param token the token encapsulating the subject's principals and credentials to be passed to the Authentication subsystem for verification. @throws hunt.shiro.authc.AuthenticationException if the authentication attempt fails.