Class SRRset

java.lang.Object
org.xbill.DNS.RRset
org.xbill.DNS.dnssec.SRRset
All Implemented Interfaces:
Serializable, Iterable<Record>
Direct Known Subclasses:
KeyEntry

class SRRset extends RRset
An extended version of RRset that adds the indication of DNSSEC security status.
Since:
3.5
  • Field Details

    • securityStatus

      private SecurityStatus securityStatus
    • ownerName

      private Name ownerName
  • Constructor Details

    • SRRset

      public SRRset()
      Create a new, blank SRRset.
    • SRRset

      public SRRset(Record r)
      Create a new SRRset with one record.
      Parameters:
      r - The record to add to the RRset.
    • SRRset

      public SRRset(RRset r)
      Create a new SRRset from an existing RRset. This SRRset will contain the same internal Record objects as the original RRset.
      Parameters:
      r - The RRset to copy.
    • SRRset

      public SRRset(SRRset r)
      Create a new SRRset from an existing SRRset. This SRRset will contain the same internal Record objects as the original SRRset.
      Parameters:
      r - The RRset to copy.
  • Method Details

    • getSecurityStatus

      public SecurityStatus getSecurityStatus()
      Return the current security status (generally: SecurityStatus.UNCHECKED, SecurityStatus.BOGUS, or SecurityStatus.SECURE).
      Returns:
      The security status for this set, SecurityStatus.UNCHECKED if it has never been set manually.
    • setSecurityStatus

      public void setSecurityStatus(SecurityStatus status)
      Set the current security status for this SRRset.
      Parameters:
      status - The new security status for this set.
    • getSignerName

      public Name getSignerName()
      The "signer" name for this SRRset, if signed, or null if not.
    • getName

      public Name getName()
      Description copied from class: RRset
      Returns the name of the records
      Overrides:
      getName in class RRset
      See Also:
    • setName

      public void setName(Name ownerName)
      Set the name of the records.
      Parameters:
      ownerName - the Name to override the original name with.