// root section merged
s = config.get("libdefaults", "default_realm"); if (!s.equals("R1")) { thrownew Exception();
} // Former is preferred to latter for strings and sections
s = config.get("libdefaults", "default_tkt_enctypes"); if (!s.equals("aes128-cts")) { thrownew Exception();
}
s = config.get("realms", "R1", "kdc"); if (!s.equals("k1")) { thrownew Exception(s);
} // Duplicate keys in [realms] are merged, and sections with the same // name in between ignored
s = config.getAll("realms", "R2", "kdc"); if (!s.equals("k1 k2 k3 k4")) { thrownew Exception(s);
} // Duplicate keys in [capaths] are merged
s = config.getAll("capaths", "R1", "R2"); if (!s.equals("R3 R4 R5 R6")) { thrownew Exception(s);
} // We can be very deep now
s = config.get("new", "x", "y", "z", "a", "b", "c"); if (!s.equals("d")) { thrownew Exception(s);
}
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.