public function write($data, array $options = []) {
		$class = $options['class'];

		$futureData = $class::read(null, ['strategies' => false]);
		$futureData = [$options['key'] => $data] + $futureData;
		unset($futureData['__signature']);

		$signature = static::_signature($futureData);
		$class::write('__signature', $signature, ['strategies' => false] + $options);
		return $data;
	}
public function write($data, array $options = []) {
		$class = $options['class'];

		$futureData = $class::read(null, ['strategies' => false]);
		$futureData = [$options['key'] => $data] + $futureData;
		unset($futureData['__signature']);

		$signature = static::_signature($futureData);
		$class::write('__signature', $signature, ['strategies' => false] + $options);
		return $data;
	}
public function write ( $ data , array $ options = [ ] ) { $ class = $ options [ 'class' ] ; $ futureData = $ class :: read ( null , [ 'strategies' => false ] ) ; $ futureData = [ $ options [ 'key' ] => $ data ] + $ futureData ; unset ( $ futureData [ '__signature' ] ) ; $ signature = static :: _signature ( $ futureData ) ; $ class :: write ( '__signature' , $ signature , [ 'strategies' => false ] + $ options ) ; return $ data ; }
Write strategy method.

Adds an HMAC signature to the data. Note that this will transform the
passed `$data` to an array, and add a `__signature` key with the HMAC-calculated
value.

@see lithium\storage\Session
@see lithium\core\Adaptable::config()
@link http://php.net/function.hash-hmac.php PHP Manual: hash_hmac()
@param mixed $data The data to be signed.
@param array $options Options for this method.
@return array Data & signature.
Write strategy method .