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
    Author:
    Paulo Pacheco
    See Also:
    RFC 6844, Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  DnsRDataCaa.Builder  
    • Method Summary

      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      DnsRDataCaa.Builder getBuilder()  
      byte[] getRawData()  
      byte getReservedFlags()  
      java.lang.String getTag()  
      java.lang.String getValue()  
      int hashCode()  
      boolean isCritical()  
      int length()  
      static DnsRDataCaa newInstance​(byte[] rawData, int offset, int length)
      A static factory method.
      java.lang.String toString()  
      java.lang.String toString​(java.lang.String indent)  
      java.lang.String toString​(java.lang.String indent, byte[] headerRawData)  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • 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