Package org.xbill.DNS.dnssec
Class DefaultTrustAnchorStore
java.lang.Object
org.xbill.DNS.dnssec.DefaultTrustAnchorStore
- All Implemented Interfaces:
TrustAnchorStore
Storage for DS or DNSKEY records that are known to be trusted.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
map
-
-
Constructor Details
-
DefaultTrustAnchorStore
public DefaultTrustAnchorStore()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.- Specified by:
storein interfaceTrustAnchorStore- Parameters:
rrset- The key set to store as trusted.
-
find
Gets the closest trusted key for the given name ornullif no match is found.- Specified by:
findin interfaceTrustAnchorStore- Parameters:
name- The name to search for.dclass- The class of the keys.- Returns:
- The closest found key for
nameornull.
-
clear
public void clear()Removes all stored trust anchors.- Specified by:
clearin interfaceTrustAnchorStore
-
items
Gets all trust anchors currently in use.- Specified by:
itemsin interfaceTrustAnchorStore
-
lookup
-
key
-