Logs in the specified Subject using the given {@code authenticationToken}, returning an updated Subject
instance reflecting the authenticated state if successful or throwing {@code AuthenticationException} if it is
not.
<p/>
Note that most application developers should probably not call this method directly unless they have a good
reason for doing so. The preferred way to log in a Subject is to call
<code>subject.{@link hunt.shiro.subject.Subject#login login(authenticationToken)}</code> (usually after
acquiring the Subject by calling {@link hunt.shiro.SecurityUtils#getSubject() SecurityUtils.getSubject()}).
<p/>
Framework developers on the other hand might find calling this method directly useful in certain cases.
@param subject the subject against which the authentication attempt will occur
@param authenticationToken the token representing the Subject's principal(s) and credential(s)
@return the subject instance reflecting the authenticated state after a successful attempt
@throws AuthenticationException if the login attempt failed.
Logs in the specified Subject using the given {@code authenticationToken}, returning an updated Subject instance reflecting the authenticated state if successful or throwing {@code AuthenticationException} if it is not. <p/> Note that most application developers should probably not call this method directly unless they have a good reason for doing so. The preferred way to log in a Subject is to call <code>subject.{@link hunt.shiro.subject.Subject#login login(authenticationToken)}</code> (usually after acquiring the Subject by calling {@link hunt.shiro.SecurityUtils#getSubject() SecurityUtils.getSubject()}). <p/> Framework developers on the other hand might find calling this method directly useful in certain cases.
@param subject the subject against which the authentication attempt will occur @param authenticationToken the token representing the Subject's principal(s) and credential(s) @return the subject instance reflecting the authenticated state after a successful attempt @throws AuthenticationException if the login attempt failed.