NAME

XML::Compile::WSS::SecToken - Base for WSS Security Tokens

INHERITANCE

XML::Compile::WSS::SecToken is extended by
  XML::Compile::WSS::SecToken::X509v3

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(...);

DESCRIPTION

Supported token types

Not supporter (yet)

Other token types, found in the documentation, but not (yet) supported:

  • LTPA: Lightweight Third Party Authentication (version 1)

  • LTPAv2: Lightweight Third Party Authentication version 2

Hire me to implement these!

METHODS

Constructors

XML::Compile::WSS::SecToken->fromBinSecToken(WSS, DATA)

Convert the information of a binary security token, where DATA is produced by the XML::Compile reader, to a security token.

XML::Compile::WSS::SecToken->fromConfig(CONFIG, OPTIONS)

Try to be very flexible. CONFIG can be a HASH, which could also be passed to new() directly. But it can also be various kinds of objects.

-Option--Default
 type    XTP10_X509v3
type => CONSTANT

[1.07] the type of the security token.

XML::Compile::WSS::SecToken->new(OPTIONS)
-Option--Default
 binary  undef
 id      'my-token'
 type    XTP10_X509v3
binary => BYTES
id => wsu::Id
type => TOKENTYPE

Attributes

$obj->id()
$obj->type()

Handlers

$obj->asBinary()

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.

$obj->makeBinSecTokenWriter(WSS)

Returns a CODE which is used to produced a BinarySecurityToken child for the Security header.

SEE ALSO

This module is part of XML-Compile-WSS-Signature distribution version 1.09, built on January 18, 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, 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 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