Class TrustAnchorStore

java.lang.Object
org.jitsi.dnssec.validator.TrustAnchorStore

public class TrustAnchorStore extends Object
Storage for DS or DNSKEY records that are known to be trusted.
Author:
davidb
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new instance of this class.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Removes all stored trust anchors.
    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 Details

    • TrustAnchorStore

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

    • 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.