Class 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 or null if no match is found.
      void store​(SRRset rrset)
      Stores the given RRset as known trusted keys.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TrustAnchorStore

        public TrustAnchorStore()
        Creates a new instance of this class.
    • 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 or null 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 or null.
      • clear

        public void clear()
        Removes all stored trust anchors.