Package org.xbill.DNS
Class CookieOption
java.lang.Object
org.xbill.DNS.EDNSOption
org.xbill.DNS.CookieOption
Cookie EDNS0 Option.
- Author:
- Klaus Malorny
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.xbill.DNS.EDNSOption
EDNSOption.Code -
Constructor Summary
ConstructorsConstructorDescriptionCookieOption(byte[] clientCookie) Constructor.CookieOption(byte[] clientCookie, byte[] serverCookie) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Returns the client cookie.Optional<byte[]> Returns the server cookie.
-
Constructor Details
-
CookieOption
public CookieOption(byte[] clientCookie) Constructor.- Parameters:
clientCookie- the client cookie, which must consist of eight bytes
-
CookieOption
public CookieOption(byte[] clientCookie, byte[] serverCookie) Constructor.- Parameters:
clientCookie- the client cookie, which must consist of eight bytesserverCookie- the server cookie, which must consist of 8 to 32 bytes if present
-
-
Method Details
-
getClientCookie
public byte[] getClientCookie()Returns the client cookie.- Returns:
- the client cookie
-
getServerCookie
Returns the server cookie.- Returns:
- the server cookie
-