RDF::Crypt::Verifier - verifies signed RDF graphs
use 5.010; use File::Slurp qw< slurp >; use RDF::Crypt::Verifier; use RDF::TrineX::Functions qw< parse >; my $verify = RDF::Crypt::Verifier->new_from_file( '/path/to/public-key.pem' ); my $graph = parse '/path/to/important.ttl'; my $signature = slurp '/path/to/important.ttl.sig'; say "graph is trusted" if $v->verify_model($graph, $signature);
A Verifier object is created using an RSA public key. The object can be used to verify signatures for multiple RDF graphs.
RDF::Crypt::Role::WithPublicKeys
RDF::Crypt::Role::DoesVerify
RDF::Crypt::Role::StandardSignatureMarkers
RDF::Crypt::Role::ToString
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.
To install RDF::Crypt, copy and paste the appropriate command in to your terminal.
cpanm
cpanm RDF::Crypt
CPAN shell
perl -MCPAN -e shell install RDF::Crypt
For more information on module installation, please visit the detailed CPAN module installation guide.