public static String unquote()

in src/main/java/org/apache/accumulo/access/AccessExpression.java [307:318]


  public static String unquote(String term) {
    if (term.equals("\"\"") || term.isEmpty()) {
      throw new IllegalArgumentException("Empty strings are not legal authorizations.");
    }

    if (term.charAt(0) == '"' && term.charAt(term.length() - 1) == '"') {
      term = term.substring(1, term.length() - 1);
      return AccessEvaluatorImpl.unescape(new BytesWrapper(term.getBytes(UTF_8)));
    } else {
      return term;
    }
  }