@SuppressWarnings("unchecked") @Test public void testUnknownAlgorithm() throws IOException { DnssecClient client = constructDnssecClient(); Date signatureExpiration = new Date(System.currentTimeMillis() + 14 * 24 * 60 * 60 * 1000); Date signatureInception = new Date(System.currentTimeMillis() - 14 * 24 * 60 * 60 * 1000); RRSIG unknownRrsig = rrsig(Record.TYPE.A, 213, 2, 3600, signatureExpiration, signatureInception, comZSK.getKeyTag(), "com", new byte[0]); 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"))) ), zone("com", "ns.com", "1.1.1.1", record("com", comKSK), record("com", comZSK), record("example.com", a("1.1.1.2")), record("example.com", unknownRrsig) ) ); DnssecQueryResult result = client.queryDnssec("example.com", Record.TYPE.A); assertFalse(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);  }