Package org.jitsi.dnssec.validator
Class TrustAnchorStore
- java.lang.Object
-
- org.jitsi.dnssec.validator.TrustAnchorStore
-
public class TrustAnchorStore extends java.lang.ObjectStorage 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 voidclear()Removes all stored trust anchors.SRRsetfind(org.xbill.DNS.Name name, int dclass)Gets the closest trusted key for the given name ornullif no match is found.voidstore(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 ornullif no match is found.- 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.
-
-