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[]cookieControl 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.voidwriteCookie(byte[] b)Writes a cookie to storage.
-
-
-
Method Detail
-
readCookie
public byte[] readCookie()
Description copied from interface:CookieManagerRead and return a cookie from storage.- Specified by:
readCookiein interfaceCookieManager- Returns:
- cookie read from storage
-
writeCookie
public void writeCookie(byte[] b)
Description copied from interface:CookieManagerWrites a cookie to storage.- Specified by:
writeCookiein interfaceCookieManager- Parameters:
b- to write
-
-