class DefaultAuthzResultCache {

    public void invalidate(final User user) {
        if (user == null || user.getIdentifier() == null || user.getIdentifier().isEmpty()) {
            return;
        }
        for (Map<String, AuthorizationResult> entry : internal.values()) {
            entry.remove(user.getIdentifier());
        }
    }

}