=head1 NAME XML::Compile::WSS::SecToken - Base for WSS Security Tokens =head1 INHERITANCE XML::Compile::WSS::SecToken is extended by XML::Compile::WSS::SecToken::X509v3 =head1 SYNOPSIS # either use XML::Compile::WSS::Util qw/XTP10_X509v3/; my $token = XML::Compile::WSS::SecToken->new(type => XTP10_X509v3, ...); # or use XML::Compile::WSS::SecToken::X509v3; my $token = XML::Compile::WSS::SecToken::X509v3->new(...); =head1 DESCRIPTION =head2 Supported token types =over 4 =item * X509v3, see L =back =head2 Not supporter (yet) Other token types, found in the documentation, but not (yet) supported: =over 4 =item * LTPA: Lightweight Third Party Authentication (version 1) =item * LTPAv2: Lightweight Third Party Authentication version 2 =back Hire me to implement these! =head1 METHODS =head2 Constructors =over 4 =item XML::Compile::WSS::SecToken-EB(WSS, DATA) Convert the information of a binary security token, where DATA is produced by the L reader, to a security token. =item XML::Compile::WSS::SecToken-EB(CONFIG, OPTIONS) Try to be very flexible. CONFIG can be a HASH, which could also be passed to L directly. But it can also be various kinds of objects. -Option--Default type XTP10_X509v3 =over 2 =item type => CONSTANT [1.07] the type of the security token. =back =item XML::Compile::WSS::SecToken-EB(OPTIONS) -Option--Default binary undef id 'my-token' type XTP10_X509v3 =over 2 =item binary => BYTES =item id => wsu::Id =item type => TOKENTYPE =back =back =head2 Attributes =over 4 =item $obj-EB() =item $obj-EB() =back =head2 Handlers =over 4 =item $obj-EB() Returns the token information, to be used in a "BinarySecurityToken" object. Returned is the EncodingType used (may be undef) and the encoded data as by preference of the token type. =item $obj-EB(WSS) Returns a CODE which is used to produced a BinarySecurityToken child for the Security header. =back =head1 SEE ALSO This module is part of XML-Compile-WSS-Signature distribution version 1.07, built on January 14, 2013. Website: F Other distributions in this suite: L, L, L, L, L, L, L, L, L, L, L, L, L, L, and L. Please post questions or ideas to the mailinglist at F For live contact with other developers, visit the C<#xml-compile> channel on C. =head1 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 F