private void verifyEnabledOrThrow(final User user, final String authType) {
        if (!user.isEnabled()) {
            LOGGER.warn("Disabled user '{}' attempted {} authentication. {}",
                    user.getDisplayName(), authType, user);
            throw new AuthenticationException(LogUtil.message("User '{}' is disabled.",
                    user.getDisplayName()));
        }
    }
@param user The user to check
@throws AuthenticationException if user is disabled.
stroom-security/stroom-security-impl/src/main/java/stroom/security/impl/StroomUserIdentityFactory.java