public final class DnsRDataCaa extends Object implements DnsResourceRecord.DnsRData
+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.
Modifier and Type | Class and Description |
---|---|
static class |
DnsRDataCaa.Builder |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
DnsRDataCaa.Builder |
getBuilder() |
byte[] |
getRawData() |
byte |
getReservedFlags() |
String |
getTag() |
String |
getValue() |
int |
hashCode() |
boolean |
isCritical() |
int |
length() |
static DnsRDataCaa |
newInstance(byte[] rawData,
int offset,
int length)
A static factory method.
|
String |
toString() |
String |
toString(String indent) |
String |
toString(String indent,
byte[] headerRawData) |
public static DnsRDataCaa newInstance(byte[] rawData, int offset, int length) throws IllegalRawDataException
ByteArrays.validateBounds(byte[], int, int)
,
which may throw exceptions undocumented here.rawData
- rawDataoffset
- offsetlength
- lengthIllegalRawDataException
- if parsing the raw data fails.public boolean isCritical()
public byte getReservedFlags()
public String getTag()
public String getValue()
public int length()
length
in interface DnsResourceRecord.DnsRData
public byte[] getRawData()
getRawData
in interface DnsResourceRecord.DnsRData
public DnsRDataCaa.Builder getBuilder()
public String toString(String indent)
toString
in interface DnsResourceRecord.DnsRData
indent
- indentpublic String toString(String indent, byte[] headerRawData)
toString
in interface DnsResourceRecord.DnsRData
indent
- indentheaderRawData
- the raw data of the DNS header including this RDATA.Copyright © 2011–2018 Pcap4J.org. All rights reserved.