code: public static String[] permissions(final Permission... permissions)
      {
          final List<String> values = new ArrayList<>(permissions.length);
          for (Permission permission : permissions)
          {
              values.add(permission.getValue());
          }
          return values.toArray(new String[values.size()]);
      }
docs: Converts the permissions into a String array.
  
  @param permissions the permissions
  @return the permissions as an array of strings