code: protected boolean isAllAuthenticatedGranted(String resourceName,
                                                  Collection<String> requiredRoles,
                                                  Subject subject) {
          Collection<String> roles = getRolesForSpecialSubject(resourceName, AuthorizationTableService.ALL_AUTHENTICATED_USERS);
          AccessDecisionService accessDecisionService = accessDecisionServiceRef.getService();
          return accessDecisionService.isGranted(resourceName, requiredRoles,
                                                 roles, subject);
      }
docs: Check if the special subject ALL_AUTHENTICATED_USERS is mapped to the
  requiredRole.
  
  @param resourceName
  the name of the resource being accessed, used to look up
  corresponding the authorization table, must not be null
  @param requiredRoles
  the security constraints required to be authorized, must not
  be null or empty
  @param subject
  the user who is trying to access the resource
  
  @throws NullPointerException
  when resourceName or requiredRoles is null