Class DnsRDataCaa

  • All Implemented Interfaces:
    java.io.Serializable, DnsResourceRecord.DnsRData

    public final class DnsRDataCaa
    extends java.lang.Object
    implements DnsResourceRecord.DnsRData
    DNS CAA RDATA
     +0-1-2-3-4-5-6-7-|0-1-2-3-4-5-6-7-|
     | Flags          | Tag Length = n |
     +----------------+----------------+...+---------------+
     | Tag char 0     | Tag char 1     |...| Tag char n-1  |
     +----------------+----------------+...+---------------+
     +----------------+----------------+.....+----------------+
     | Value byte 0   | Value byte 1   |.....| Value byte m-1 |
     +----------------+----------------+.....+----------------+
     (m = d - n - 2) where d is the length of the RDATA section.)
    
     where:
     Flags: One octet containing bit flags for record. See rfc for details.
    
        Bit 0, Issuer Critical Flag
        All other bit positions are reserved for future use.
    
     Tag: The property identifier, a sequence of US-ASCII characters.
     Value: A sequence of octets representing the property value.
     
    Since:
    pcap4j 1.7.2
    See Also:
    RFC 6844, Serialized Form
    • Field Detail

      • serialVersionUID

        private static final long serialVersionUID
        A serial UID for serialization.
        See Also:
        Constant Field Values
      • critical

        private final boolean critical
      • reservedFlags

        private final byte reservedFlags
      • tag

        private final java.lang.String tag
      • value

        private final java.lang.String value
    • Method Detail

      • isCritical

        public boolean isCritical()
        Returns:
        true if the Issuer Critical Flag is set to 1; false otherwise.
      • getReservedFlags

        public byte getReservedFlags()
        Returns:
        reservedFlags (Bit 1 to 7 of the Flags field)
      • getTag

        public java.lang.String getTag()
        Returns:
        tag
      • getValue

        public java.lang.String getValue()
        Returns:
        value
      • getBuilder

        public DnsRDataCaa.Builder getBuilder()
        Returns:
        a new Builder object populated with this object's fields.
      • toString

        public java.lang.String toString​(java.lang.String indent)
        Specified by:
        toString in interface DnsResourceRecord.DnsRData
        Parameters:
        indent - indent
        Returns:
        String representation of this object.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • toString

        public java.lang.String toString​(java.lang.String indent,
                                         byte[] headerRawData)
        Specified by:
        toString in interface DnsResourceRecord.DnsRData
        Parameters:
        indent - indent
        headerRawData - the raw data of the DNS header including this RDATA.
        Returns:
        String representation of this object.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object