Package org.jitsi.dnssec.validator
Class TrustAnchorStore
- java.lang.Object
-
- org.jitsi.dnssec.validator.TrustAnchorStore
-
public class TrustAnchorStore extends java.lang.Object
Storage for DS or DNSKEY records that are known to be trusted.- Author:
- davidb
-
-
Constructor Summary
Constructors Constructor Description TrustAnchorStore()
Creates a new instance of this class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
Removes all stored trust anchors.SRRset
find(org.xbill.DNS.Name name, int dclass)
Gets the closest trusted key for the given name ornull
if no match is found.void
store(SRRset rrset)
Stores the given RRset as known trusted keys.
-
-
-
Method Detail
-
store
public void store(SRRset rrset)
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
public SRRset find(org.xbill.DNS.Name name, int dclass)
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.
-
-