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.
Upon returning quietly, this {@code Subject} instance can be consideredauthenticated 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 theAuthentication subsystem for verification.
@throws org.apache.shiro.authc.AuthenticationException if the authentication attempt fails.
@since 0.9