The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

XML::Compile::WSS::Sign::HMAC - WSS Signing with HMAC

INHERITANCE

 XML::Compile::WSS::Sign::HMAC
   is a XML::Compile::WSS::Sign

SYNOPSIS

  # either
  use XML::Compile::WSS::Util qw/DSIG_HMAC_SHA1/;
  my $sign = XML::Compile::WSS::Sign->new(type => DSIG_HMAC_SHA1);

  # or
  use XML::Compile::WSS::Sign::HMAC;
  my $token = XML::Compile::WSS::Sign::HMAC->new(
     hashing => 'SHA1', ...);

DESCRIPTION

See documentation in the base class.

METHODS

See documentation in the base class.

Constructors

See documentation in the base class.

XML::Compile::WSS::Sign::HMAC->fromConfig(HASH|PAIRS)

See "Constructors" in XML::Compile::WSS::Sign

XML::Compile::WSS::Sign::HMAC->new(OPTIONS)
 -Option     --Defined in             --Default
  key                                   <required>
  sign_method  XML::Compile::WSS::Sign  DSIG_RSA_SHA1
key => KEY|XML::Compile::WSS::SecToken::EncrKey object
sign_method => TYPE

Attributes

See documentation in the base class.

$obj->key()
$obj->signMethod()

See "Attributes" in XML::Compile::WSS::Sign

Handlers

See documentation in the base class.

$obj->builder()

See "Handlers" in XML::Compile::WSS::Sign

$obj->checker()

See "Handlers" in XML::Compile::WSS::Sign

DETAILS

Read DETAILS in XML::Compile::WSS::Sign first.

See documentation in the base class.

Signing, the generic part

See documentation in the base class.

Defend against man-in-the-middle

See documentation in the base class.

Signing with HMAC

Limitations

The signing algorithm uses Digest::HMAC_SHA1. Only SHA1 hashing is supported.

SEE ALSO

This module is part of XML-Compile-WSS-Signature distribution version 2.01, built on October 11, 2013. 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 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 irc.perl.org.

LICENSE

Copyrights 2012-2013 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