Toby Inkster > RDF-Crypt-0.002 > RDF::Crypt::Role::WithPublicKeys

Download:
RDF-Crypt-0.002.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

Open  1
View/Report Bugs
Module Version: 0.002   Source  

NAME ^

RDF::Crypt::Role::WithPublicKeys - role for objects that have public keys

DESCRIPTION ^

Attributes

public_keys

Read only; ArrayRef[Crypt::OpenSSL::RSA]; lazy build.

webid

Read only; Str.

webid_san

Read only; Web::ID::SAN::URI|Undef; lazy build.

Additional Constructor Methods

new_from_file($file)

Given a filename containing a DER or PEM encoded RSA public key, constructs an object.

new_from_string($str)

Given a string containing a DER or PEM encoded RSA public key, constructs an object.

new_from_pubkey($key)

Given a Crypt::OpenSSL::RSA public key object, constructs an object.

new_from_webid($uri)

Given a WebID URI with one of more FOAF+SSL public keys, constructs an object. If multiple public keys are associated with the same WebID, then the one with the largest key size (most secure) is typically used.

Object Method

webid_model

Calls model on webid_san.

SEE ALSO ^

RDF::Crypt, RDF::Crypt::Encrypter, RDF::Crypt::Verifier.

BUGS ^

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

AUTHOR ^

Toby Inkster <tobyink@cpan.org>.

COPYRIGHT ^

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.

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.

syntax highlighting: