Graham TerMarsch > Crypt-OpenToken-0.06 > Crypt::OpenToken::Serializer

Download:
Crypt-OpenToken-0.06.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Source  

NAME ^

Crypt::OpenToken::Serializer - Serialize payloads for OpenTokens

SYNOPSYS ^

  use Crypt::OpenToken::Serializer;

  $payload = Crypt::OpenToken::Serializer::freeze(%data);

  %data = Crypt::OpenToken::Serializer::thaw($payload);

DESCRIPTION ^

This module implements the serialization routine described in the OpenToken specification for generating the payload format.

Highlights:

METHODS ^

Crypt::OpenToken::Serializer::thaw($string)

Thaws the given serialzed data, returning a hash of data back to the caller.

If the data contained any repeating keys, those are represented in the hash as having an ARRAYREF as a value.

Crypt::OpenToken::Serializer::freeze(%data)

Freezes the given data, returning a serialized string back to the caller.

AUTHOR ^

Graham TerMarsch (cpan@howlingfrog.com)

COPYRIGHT & LICENSE ^

Crypt::OpenToken is Copyright (C) 2010, Socialtext, and is released under the Artistic-2.0 license.

syntax highlighting: