RDF::Crypt::Role::DoesSign
signing methods
- Provided by: librdf-crypt-perl (Version: 0.002-2)
- Report a bug
signing methods
The model is converted to a canonicalised N-Triples representation (see RDF::Trine::Serializer::NTriples::Canonical) with any triples that cannot be canonicalised being truncated. This representation is then signed using an MD5 digest, and the resulting binary signature encoded using base64.
The base URI is used to resolve any relative URI references. Note that if a different base URI is provided when verifying the signature, this may cause verification to fail. The base URI is optional.
Rather than storing the signature as an XML/HTML comment, the signature is stored on the root element as an attribute.
This role does not implement these methods, but requires classes to implement them instead:
RDF::Crypt, RDF::Crypt::Signer.
Please report any bugs to <http://rt.cpan.org/>.
Toby Inkster <tobyink@cpan.org>.
Copyright 2010, 2012 Toby Inkster
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.