org.ldaptive.control.util.DefaultCookieManager Maven / Gradle / Ivy
/*
$Id: DefaultCookieManager.java 2885 2014-02-05 21:28:49Z dfisher $
Copyright (C) 2003-2014 Virginia Tech.
All rights reserved.
SEE LICENSE FOR MORE INFORMATION
Author: Middleware Services
Email: [email protected]
Version: $Revision: 2885 $
Updated: $Date: 2014-02-05 16:28:49 -0500 (Wed, 05 Feb 2014) $
*/
package org.ldaptive.control.util;
/**
* Cookie manager that stores a cookie in memory.
*
* @author Middleware Services
* @version $Revision: 2885 $ $Date: 2014-02-05 16:28:49 -0500 (Wed, 05 Feb 2014) $
*/
public class DefaultCookieManager implements CookieManager
{
/** Control cookie. */
private byte[] cookie;
/** Creates a new default cookie manager. */
public DefaultCookieManager() {}
/**
* Creates a new default cookie manager.
*
* @param b control cookie
*/
public DefaultCookieManager(final byte[] b)
{
cookie = b;
}
/** {@inheritDoc} */
@Override
public byte[] readCookie()
{
return cookie;
}
/** {@inheritDoc} */
@Override
public void writeCookie(final byte[] b)
{
cookie = b;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy