Package org.jitsi.dnssec.validator
Class TrustAnchorStore
java.lang.Object
org.jitsi.dnssec.validator.TrustAnchorStore
Storage for DS or DNSKEY records that are known to be trusted.
- Author:
- davidb
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
TrustAnchorStore
public TrustAnchorStore()Creates a new instance of this class.
-
-
Method Details
-
store
Stores the given RRset as known trusted keys. Existing keys for the same name and class are overwritten.- Parameters:
rrset
- The key set to store as trusted.
-
find
Gets the closest trusted key for the given name ornull
if no match is found.- Parameters:
name
- The name to search for.dclass
- The class of the keys.- Returns:
- The closest found key for
name
ornull
.
-
clear
public void clear()Removes all stored trust anchors.
-