@SuppressWarnings("unchecked") @Test public void testNoSEPAtKSK() throws IOException { DnssecClient client = constructDnssecClient(); DNSKEY comKSK = dnskey(DNSKEY.FLAG_ZONE, algorithm, publicKey(algorithm, comPrivateKSK)); applyZones(client, signedRootZone( sign(rootKSK, "", rootPrivateKSK, algorithm, record("", rootKSK), record("", rootZSK)), sign(rootZSK, "", rootPrivateZSK, algorithm, record("com", ds("com", digestType, comKSK))), sign(rootZSK, "", rootPrivateZSK, algorithm, record("com", ns("ns.com"))), sign(rootZSK, "", rootPrivateZSK, algorithm, record("ns.com", a("1.1.1.1"))) ), signedZone("com", "ns.com", "1.1.1.1", sign(comKSK, "com", comPrivateKSK, algorithm, record("com", comKSK), record("com", comZSK)), sign(comZSK, "com", comPrivateZSK, algorithm, record("example.com", a("1.1.1.2"))) ) ); DnssecQueryResult result = client.queryDnssec("example.com", Record.TYPE.A); assertTrue(result.isAuthenticData()); DnsMessage message = result.synthesizedResponse; checkCorrectExampleMessage(message); }
public DnssecQueryResult queryDnssec(CharSequence name, TYPE type) throws IOException { Question q = new Question(name, type, CLASS.IN); return queryDnssec(q); }
DnssecClient extends ReliableDnsClient { public DnssecQueryResult queryDnssec(CharSequence name, TYPE type) throws IOException { Question q = new Question(name, type, CLASS.IN); return queryDnssec(q); } }
DnssecClient extends ReliableDnsClient { public DnssecQueryResult queryDnssec(CharSequence name, TYPE type) throws IOException { Question q = new Question(name, type, CLASS.IN); return queryDnssec(q); } DnssecClient();  DnssecClient(DnsCache cache); }
DnssecClient extends ReliableDnsClient { public DnssecQueryResult queryDnssec(CharSequence name, TYPE type) throws IOException { Question q = new Question(name, type, CLASS.IN); return queryDnssec(q); } DnssecClient();  DnssecClient(DnsCache cache); @Override DnsQueryResult query(Question q); DnssecQueryResult queryDnssec(CharSequence name, TYPE type); DnssecQueryResult queryDnssec(Question q); void addSecureEntryPoint(DnsName name, byte[] key); void removeSecureEntryPoint(DnsName name); void clearSecureEntryPoints(); boolean isStripSignatureRecords(); void setStripSignatureRecords(boolean stripSignatureRecords); void enableLookasideValidation(); void disableLookasideValidation(); void configureLookasideValidation(DnsName dlv); }
DnssecClient extends ReliableDnsClient { public DnssecQueryResult queryDnssec(CharSequence name, TYPE type) throws IOException { Question q = new Question(name, type, CLASS.IN); return queryDnssec(q); } DnssecClient();  DnssecClient(DnsCache cache); @Override DnsQueryResult query(Question q); DnssecQueryResult queryDnssec(CharSequence name, TYPE type); DnssecQueryResult queryDnssec(Question q); void addSecureEntryPoint(DnsName name, byte[] key); void removeSecureEntryPoint(DnsName name); void clearSecureEntryPoints(); boolean isStripSignatureRecords(); void setStripSignatureRecords(boolean stripSignatureRecords); void enableLookasideValidation(); void disableLookasideValidation(); void configureLookasideValidation(DnsName dlv);  }