public class CookieOption extends EDNSOption
OPTRecordEDNSOption.Code| Constructor and Description |
|---|
CookieOption(byte[] clientCookie)
Constructor.
|
CookieOption(byte[] clientCookie,
byte[] serverCookie)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getClientCookie()
Returns the client cookie.
|
Optional<byte[]> |
getServerCookie()
Returns the server cookie.
|
public CookieOption(byte[] clientCookie)
clientCookie - the client cookie, which must consist of eight bytespublic CookieOption(byte[] clientCookie,
byte[] serverCookie)
clientCookie - the client cookie, which must consist of eight bytesserverCookie - the server cookie, which must consist of 8 to 32 bytes if presentpublic byte[] getClientCookie()
public Optional<byte[]> getServerCookie()
Copyright © 2021 dnsjava.org. All rights reserved.