The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

RDF::Crypt::Decrypter - decryptes encrypted RDF graphs

DESCRIPTION

A Decrypter object is created using an RSA private key.

RDF::Crypt::Decrypter is a subclass of RDF::Crypt::Encrypter, and can thus also be used to encrypt graphs for yourself, using just your private key. See RDF::Crypt::Encrypter for details of the encryption methods.

Constructors

new_from_file($file)

Given a filename containing a DER or PEM encoded RSA private key, constructs a Decrypter object.

new_from_string($str)

Given a string containing a DER or PEM encoded RSA private key, constructs a Decrypter object.

new_from_privkey($key)

Given a Crypt::OpenSSL::RSA private key object, constructs a Decrypter object.

Object Methods

decrypt_model($text, %opts)

Given a string that represents an encrypted RDF graph, decrypts and parses it. Any options are passed along to RDF::TrineShortcuts' rdf_parse function.

Returns an RDF::Trine::Model.

decrypt_text($str)

Bonus method - decrypts a literal string which may or may not have anything to do with RDF.

SEE ALSO

RDF::Crypt::Encrypter.

BUGS

Please report any bugs to http://rt.cpan.org/.

AUTHOR

Toby Inkster <tobyink@cpan.org>.

COPYRIGHT

Copyright 2010 Toby Inkster

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.