Package io.netty.handler.codec.dns
Interface DnsOptCookieRecord
-
- All Superinterfaces:
DnsOptPseudoRecord,DnsRecord
- All Known Implementing Classes:
DefaultDnsOptCookieRecord
public interface DnsOptCookieRecord extends DnsOptPseudoRecord
AnDnsOptPseudoRecordthat carries a client cookie as defined in RFC 7873, Domain Name System (DNS) Cookies.
-
-
Field Summary
Fields Modifier and Type Field Description static intCLIENT_COOKIE_LENGTHThe length of a client cookie in bytes.static intOPTION_CODETheOPTION-CODEthat is assigned toCOOKIE.-
Fields inherited from interface io.netty.handler.codec.dns.DnsRecord
CLASS_ANY, CLASS_CHAOS, CLASS_CSNET, CLASS_HESIOD, CLASS_IN, CLASS_NONE
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]clientCookie()Returns the client cookie, which is alwaysCLIENT_COOKIE_LENGTHbytes long.-
Methods inherited from interface io.netty.handler.codec.dns.DnsOptPseudoRecord
extendedRcode, flags, version
-
Methods inherited from interface io.netty.handler.codec.dns.DnsRecord
dnsClass, name, timeToLive, type
-
-
-
-
Field Detail
-
CLIENT_COOKIE_LENGTH
static final int CLIENT_COOKIE_LENGTH
The length of a client cookie in bytes.- See Also:
- Constant Field Values
-
OPTION_CODE
static final int OPTION_CODE
TheOPTION-CODEthat is assigned toCOOKIE.- See Also:
- Constant Field Values
-
-
Method Detail
-
clientCookie
byte[] clientCookie()
Returns the client cookie, which is alwaysCLIENT_COOKIE_LENGTHbytes long. The returned array is a copy.
-
-