Package org.ldaptive.control.util
Class DefaultCookieManager
- java.lang.Object
-
- org.ldaptive.control.util.DefaultCookieManager
-
- All Implemented Interfaces:
CookieManager
public class DefaultCookieManager extends Object implements CookieManager
Cookie manager that stores a cookie in memory.
-
-
Field Summary
Fields Modifier and Type Field Description private byte[]
cookie
Control cookie.
-
Constructor Summary
Constructors Constructor Description DefaultCookieManager()
Creates a new default cookie manager.DefaultCookieManager(byte[] b)
Creates a new default cookie manager.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
readCookie()
Read and return a cookie from storage.void
writeCookie(byte[] b)
Writes a cookie to storage.
-
-
-
Method Detail
-
readCookie
public byte[] readCookie()
Description copied from interface:CookieManager
Read and return a cookie from storage.- Specified by:
readCookie
in interfaceCookieManager
- Returns:
- cookie read from storage
-
writeCookie
public void writeCookie(byte[] b)
Description copied from interface:CookieManager
Writes a cookie to storage.- Specified by:
writeCookie
in interfaceCookieManager
- Parameters:
b
- to write
-
-