code: public boolean hasPermissionsById(String id, String... permissions) {
          List<Permission> resolvedPermissions = Lists.newArrayListWithCapacity(permissions.length);
          for (String permission : permissions) {
              resolvedPermissions.add(getPermissionResolver().resolvePermission(permission));
          }
          return hasPermissionsById(id, resolvedPermissions);
      }
docs: Test for whether an API key has specific permissions using its ID.