code: public Set<Permission> authorize(AuthenticatedUser user, IResource resource)
      {
          if (user.isSuper())
              return Permission.ALL;
  
          UntypedResultSet result;
          try
          {
              ResultMessage.Rows rows = authorizeStatement.execute(QueryState.forInternalCalls(),
                                                                   QueryOptions.forInternalCalls(ConsistencyLevel.LOCAL_ONE,
                                                                                                 Lists.newArrayList(ByteBufferUtil.bytes(user.getName()),
                                                                                                                    ByteBufferUtil.bytes(resource.getName()))));
              result = UntypedResultSet.create(rows.result);
          }
          catch (RequestValidationException e)
          {
              throw new AssertionError(e); // not supposed to happen
          }
          catch (RequestExecutionException e)
          {
              logger.warn("CassandraAuthorizer failed to authorize {} for {}", user, resource);
              return Permission.NONE;
          }
  
          if (result.isEmpty() || !result.one().has(PERMISSIONS))
              return Permission.NONE;
  
          Set<Permission> permissions = EnumSet.noneOf(Permission.class);
          for (String perm : result.one().getSet(PERMISSIONS, UTF8Type.instance))
              permissions.add(Permission.valueOf(perm));
          return permissions;
      }
docs: Returns every permission on the resource granted to the user.