Interface DnsOptCookieRecord

All Superinterfaces:
DnsOptPseudoRecord, DnsRecord
All Known Implementing Classes:
DefaultDnsOptCookieRecord

public interface DnsOptCookieRecord extends DnsOptPseudoRecord
An DnsOptPseudoRecord that carries a client cookie as defined in RFC 7873, Domain Name System (DNS) Cookies.
  • Field Details

    • OPTION_CODE

      static final int OPTION_CODE
      The OPTION-CODE that is assigned to COOKIE.
      See Also:
  • Method Details

    • clientCookie

      byte[] clientCookie()
      Returns the client cookie, which is always CLIENT_COOKIE_LENGTH bytes long. The returned array is a copy.