=encoding utf8

=head1 NAME

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

=head1 INHERITANCE

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

=head1 SYNOPSIS

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

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

=head1 DESCRIPTION

Extends L<"DESCRIPTION" in XML::Compile::WSS::Sign|XML::Compile::WSS::Sign/"DESCRIPTION">.
 
=head1 METHODS

Extends L<"METHODS" in XML::Compile::WSS::Sign|XML::Compile::WSS::Sign/"METHODS">.
 
=head2 Constructors

Extends L<"Constructors" in XML::Compile::WSS::Sign|XML::Compile::WSS::Sign/"Constructors">.
 
=over 4

=item XML::Compile::WSS::Sign::HMAC-E<gt>B<fromConfig>(HASH|PAIRS)

Inherited, see L<XML::Compile::WSS::Sign/"Constructors">

=item XML::Compile::WSS::Sign::HMAC-E<gt>B<new>(%options)

 -Option     --Defined in             --Default
  key                                   <required>
  sign_method  XML::Compile::WSS::Sign  DSIG_RSA_SHA1

=over 2

=item key => KEY|L<XML::Compile::WSS::SecToken::EncrKey|XML::Compile::WSS::SecToken::EncrKey> object

=item sign_method => TYPE

=back

=back

=head2 Attributes

Extends L<"Attributes" in XML::Compile::WSS::Sign|XML::Compile::WSS::Sign/"Attributes">.
 
=over 4

=item $obj-E<gt>B<key>()

=item $obj-E<gt>B<signMethod>()

Inherited, see L<XML::Compile::WSS::Sign/"Attributes">

=back

=head2 Handlers

Extends L<"Handlers" in XML::Compile::WSS::Sign|XML::Compile::WSS::Sign/"Handlers">.
 
=over 4

=item $obj-E<gt>B<builder>()

Inherited, see L<XML::Compile::WSS::Sign/"Handlers">

=item $obj-E<gt>B<checker>()

Inherited, see L<XML::Compile::WSS::Sign/"Handlers">

=back

=head1 DETAILS

Read DETAILS in L<XML::Compile::WSS::Sign|XML::Compile::WSS::Sign> first.

Extends L<"DETAILS" in XML::Compile::WSS::Sign|XML::Compile::WSS::Sign/"DETAILS">.
 
=head2 Signing, the generic part

Extends L<"Signing, the generic part" in XML::Compile::WSS::Sign|XML::Compile::WSS::Sign/"Signing, the generic part">.
 
=head2 Defend against man-in-the-middle

Extends L<"Defend against man-in-the-middle" in XML::Compile::WSS::Sign|XML::Compile::WSS::Sign/"Defend against man-in-the-middle">.
 
=head2 Signing with HMAC

=head3 Limitations

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

=head1 SEE ALSO

This module is part of XML-Compile-WSS-Signature distribution version 2.02,
built on July 16, 2016. Website: F<http://perl.overmeer.net/xml-compile/>

Please post questions or ideas to the mailinglist at
F<http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/xml-compile> .
For live contact with other developers, visit the C<#xml-compile> channel
on C<irc.perl.org>.

=head1 LICENSE

Copyrights 2012-2016 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 F<http://www.perl.com/perl/misc/Artistic.html>

