RDF::Crypt::Signer3pm
Signs rdf graphs with rsa
Usage
use 5.010;use File::Slurp qw< slurp >;use RDF::Crypt::Signer;use RDF::TrineX::Functions qw< parse >;my $sign = RDF::Crypt::Signer->new_from_file('/path/to/private-key.pem');my $raw = slurp '/path/to/important.ttl';my $graph = parse '/path/to/important.ttl';my $detached_sig = $sign->sign_model($graph);my $turtle_with_embedded_signature = $sign->sign_embed_turtle($raw);
Overview
A Signer object is created using an RSA private key. The object can be used to sign multiple RDF graphs. The signature should be independent of the RDF serialisation used, so that Turtle and RDF/XML files containing equivalent triples should generate the same signature.
RDF::Crypt::Signer can also be used to verify signatures using the private key of the signer.
Roles
•
|
RDF::Crypt::Role::WithPrivateKey |
|---|---|
•
|
RDF::Crypt::Role::DoesSign |
•
|
RDF::Crypt::Role::DoesVerify |
•
|
RDF::Crypt::Role::StandardSignatureMarkers |
•
|
RDF::Crypt::Role::ToString |
Disclaimer of warranties
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.
Releases
3 releases since Debian 7 (Wheezy); the text changed 1 time.