=encoding utf8

=head1 NAME

XML::Compile::WSS::SecToken::EncrKey - WSS Encrypted Keys

=head1 INHERITANCE

 XML::Compile::WSS::SecToken::EncrKey
   is a XML::Compile::WSS::SecToken

=head1 SYNOPSIS

=head1 DESCRIPTION

Extends L<"DESCRIPTION" in XML::Compile::WSS::SecToken|XML::Compile::WSS::SecToken/"DESCRIPTION">.
 
=head2 Supported token types

=over 4

=item * AEOP

=back

Extends L<"Supported token types" in XML::Compile::WSS::SecToken|XML::Compile::WSS::SecToken/"Supported token types">.
 
=head2 Not supporter (yet)

Extends L<"Not supporter (yet)" in XML::Compile::WSS::SecToken|XML::Compile::WSS::SecToken/"Not supporter (yet)">.
 
=head1 METHODS

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

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

=item XML::Compile::WSS::SecToken::EncrKey-E<gt>B<fromConfig>($config, %options)

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

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

 -Option     --Defined in                 --Default
  binary       XML::Compile::WSS::SecToken  undef
  encoding     XML::Compile::WSS::SecToken  WSM10_BASE64
  fingerprint  XML::Compile::WSS::SecToken  undef
  id           XML::Compile::WSS::SecToken  'my-token'
  key                                       <required>
  key_info                                  <constructed>
  signer                                    <required>
  type         XML::Compile::WSS::SecToken  XENC_RSA_OAEP
  uri          XML::Compile::WSS::SecToken  <unique>

=over 2

=item binary => BYTES

=item encoding => WSM10*

=item fingerprint => STRING

=item id => wsu::Id

=item key => STRING

The binary key used to sign.

=item key_info => HASH

=item signer => HASH|L<XML::Compile::WSS::Sign|XML::Compile::WSS::Sign>-object

This signer encrypts the key which use used, for instance, in HMAC.

=item type => TOKENTYPE

=item uri => NAME

=back

=back

=head2 Attributes

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

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

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

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

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

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

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

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

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

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

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

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

=back

=head2 Handlers

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

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

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

=item XML::Compile::WSS::SecToken::EncrKey-E<gt>B<getChecker>($wss, %options)

=item XML::Compile::WSS::SecToken::EncrKey-E<gt>B<getEncrypter>($wss, %options)

Not for end-users.  Returns the CODE which returns the object which
handles encryption or decryption of the key.

=item XML::Compile::WSS::SecToken::EncrKey-E<gt>B<getKey>($wss, %options)

Not for end-users.  Returns the CODE to produce the decrypted key.

=back

=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>

