diff options
author | Jesse Luehrs <doy@tozt.net> | 2010-12-21 13:00:30 -0600 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2010-12-21 13:22:31 -0600 |
commit | fe4c6e3e5b0875cc287eceb701ef751f3511dc6b (patch) | |
tree | 482107b9116d98d340e6068bc98b76a10b45e612 /lib/KiokuDB/Serializer/JSON/Crypt.pm | |
parent | 244ad8fc7e090884b3fc7fda2d7036d7f756c40b (diff) | |
download | kiokudb-serializer-crypt-fe4c6e3e5b0875cc287eceb701ef751f3511dc6b.tar.gz kiokudb-serializer-crypt-fe4c6e3e5b0875cc287eceb701ef751f3511dc6b.zip |
use delegation here instead of roles
Diffstat (limited to 'lib/KiokuDB/Serializer/JSON/Crypt.pm')
-rw-r--r-- | lib/KiokuDB/Serializer/JSON/Crypt.pm | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/lib/KiokuDB/Serializer/JSON/Crypt.pm b/lib/KiokuDB/Serializer/JSON/Crypt.pm deleted file mode 100644 index 8a87fa5..0000000 --- a/lib/KiokuDB/Serializer/JSON/Crypt.pm +++ /dev/null @@ -1,38 +0,0 @@ -package KiokuDB::Serializer::JSON::Crypt; -use Moose; -use namespace::autoclean; -# ABSTRACT: encrypted JSON serializer - -=head1 SYNOPSIS - - use KiokuDB::Util; - use KiokuDB::Serializer::JSON::Crypt; - - my $dsn = '...'; - my $secret = '...'; - - my $backend = KiokuDB::Util::dsn_to_backend( - $dsn, - serializer => KiokuDB::Serializer::JSON::Crypt->new( - crypt_cipher => 'Rijndael', - crypt_mode => 'CFB', - crypt_key => $secret, - ), - ) - - my $d = KiokuDB->new(backend => $backend); - -=head1 DESCRIPTION - -This serializer class extends L<KiokuDB::Serializer::JSON> to add encryption -support. See L<KiokuDB::Serializer::Crypt> for an explanation of the allowed -attributes. - -=cut - -extends 'KiokuDB::Serializer::JSON'; -with 'KiokuDB::Serializer::Crypt'; - -__PACKAGE__->meta->make_immutable; - -1; |