Class DefaultTrustAnchorStore

java.lang.Object
org.xbill.DNS.dnssec.DefaultTrustAnchorStore
All Implemented Interfaces:
TrustAnchorStore

final class DefaultTrustAnchorStore extends Object implements TrustAnchorStore
Storage for DS or DNSKEY records that are known to be trusted.
  • Field Details

  • Constructor Details

    • DefaultTrustAnchorStore

      public DefaultTrustAnchorStore()
      Creates a new instance of this class.
  • Method Details

    • store

      public void store(RRset rrset)
      Stores the given RRset as known trusted keys. Existing keys for the same name and class are overwritten.
      Specified by:
      store in interface TrustAnchorStore
      Parameters:
      rrset - The key set to store as trusted.
    • find

      public RRset find(Name name, int dclass)
      Gets the closest trusted key for the given name or null if no match is found.
      Specified by:
      find in interface TrustAnchorStore
      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.
      Specified by:
      clear in interface TrustAnchorStore
    • items

      public Collection<RRset> items()
      Gets all trust anchors currently in use.
      Specified by:
      items in interface TrustAnchorStore
    • lookup

      private RRset lookup(String key)
    • key

      private String key(Name n, int dclass)