XML::Compile::WSS::Sign::RSA - WSS Signing with RSA
XML::Compile::WSS::Sign::RSA is a XML::Compile::WSS::Sign
# either use XML::Compile::WSS::Util qw/DSIG_RSA_SHA1/; my $sign = XML::Compile::WSS::Sign->new(type => DSIG_RSA_SHA1); # or use XML::Compile::WSS::Sign::RSA; my $token = XML::Compile::WSS::Sign::RSA->new( hashing => 'SHA1', ...);
-Option --Defined in --Default hashing <derived from type> private_key undef public_key <from private key> type XML::Compile::WSS::Sign DSIG_RSA_SHA1
Required if you want to use this object to check(). See publicKey() Usually, you need either the public or the private key, not both. However, when you specify a private key, you can ask for the public key as well: it is included.
Returns the private key wrapped in a Crypt::OpenSSL::RSA object.
Set the public key. You can pass a KEY, which is one of
Returns the Crypt::OpenSSL::RSA-wrapped public key.
Use TOKEN to check whether the BYTES (passed by reference) match the SIGNATURE.
For RSA signing, the token can be
Read DETAILS in XML::Compile::WSS::Sign first.
The signing algorithm uses Crypt::OpenSSL::RSA. According to its manual-page, the current implementation is limited to
DSIG_RSA_SHA1 DSIGM_RSA_MD5 DSIGM_RSA_SHA256 DSIGM_RSA_SHA384 DSIGM_RSA_SHA512
It could support some RSA_RIPEMD160, however there is no official constant for that in the standards.
This module is part of XML-Compile-WSS-Signature distribution version 0.91, built on November 19, 2012. Website: http://perl.overmeer.net/xml-compile/
Other distributions in this suite: XML::Compile, XML::Compile::SOAP, XML::Compile::SOAP12, XML::Compile::SOAP::Daemon, XML::Compile::SOAP::WSA, XML::Compile::C14N, XML::Compile::WSS, XML::Compile::WSS::Signature, XML::Compile::Tester, XML::Compile::Cache, XML::Compile::Dumper, XML::Compile::RPC, XML::Rewrite, XML::eXistDB, and XML::LibXML::Simple.
Please post questions or ideas to the mailinglist at http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/xml-compile
For live contact with other developers, visit the
#xml-compile channel on
Copyrights 2012 by [Mark Overmeer]. For other contributors see ChangeLog.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See http://www.perl.com/perl/misc/Artistic.html