/** * Determines whether or not remember me services should be performed for the specified token. This method returns * {@code true} iff: * <ol> * <li>The token is not {@code null} and</li> * <li>The token is an {@code instanceof} {@link RememberMeAuthenticationToken} and</li> * <li>{@code token}.{@link org.apache.shiro.authc.RememberMeAuthenticationToken#isRememberMe() isRememberMe()} is * {@code true}</li> * </ol> * * @param token the authentication token submitted during the successful authentication attempt. * @return true if remember me services should be performed as a result of the successful authentication attempt. */ protected boolean isRememberMe(AuthenticationToken token) { return token != null && (token instanceof RememberMeAuthenticationToken) && ((RememberMeAuthenticationToken) token).isRememberMe(); }