}
// Log our set of trusted keys
+ List<String> trustedKeys = validator.listTrustedKeys();
+ if (trustedKeys.size() == 0) {
+ System.err.println("ERROR: no trusted keys found/provided.");
+ return;
+ }
+
for (String key : validator.listTrustedKeys()) {
System.out.println("Trusted Key: " + key);
}
public List<String> listTrustAnchors() {
List<String> res = new ArrayList<String>();
+ if (mMap == null) {
+ return res;
+ }
+
for (Map.Entry<String, SRRset> entry : mMap.entrySet()) {
for (Iterator<Record> i = entry.getValue().rrs(); i.hasNext();) {
DNSKEYRecord r = (DNSKEYRecord) i.next();