The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

XML::Compile::WSS::Timestamp - expiration

INHERITANCE

 XML::Compile::WSS::Timestamp
   is a XML::Compile::WSS

SYNOPSIS

 # used in combination with anything
 my $wss = XML::Compile::WSS::Timestamp->new
   ( ... parametes, some required
   , schema => $anything
   );

 # connects itself to a WSDL
 my $wss  = XML::Compile::SOAP::WSS->new;
 my $wsdl = XML::Compile::WSDL11->new($wsdlfn);
 my $ts   = $wss->timestamp
   ( ... same params
   );

DESCRIPTION

The generic Web Service Security protocol is implemented by the super class XML::Compile::WSS. This extension implements a timestamp record.

METHODS

Constructors

XML::Compile::WSS::Timestamp->new(OPTIONS)
 -Option     --Defined in     --Default
  created                       now
  expires                       undef
  lifetime                      undef
  schema       XML::Compile::WSS  undef
  version      XML::Compile::WSS  undef
  wss_version  XML::Compile::WSS  '1.1'
  wsu_Id                        undef
created => DATE|TIME|''

By default, for each constructed message the current time is taken. See XML::Compile::WSS::dateTime() for options on DATETIME.

expires => DATETIME

See XML::Compile::WSS::dateTime() for options on DATETIME.

lifetime => SECONDS

When lifetime is given and no expires, then the expiration will be set to the created time plus this lifetime. In this case, the created time cannot be specified as formatted DATE.

schema => XML::Compile::Cache
version => STRING
wss_version => '1.1'|MODULE
wsu_Id => LABEL

Adds a wsu:Id attribute to the wsse:Timestamp.

Attributes

$obj->created()
$obj->expires()
$obj->lifetime()
$obj->schema()

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

$obj->timestamps()

Returns the "created" and "expires" timestamps. Both may be undef.

$obj->version()

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

$obj->wsuId()

Internals

$obj->dateTime(TIME|STRING|HASH)

See "Internals" in XML::Compile::WSS

XML::Compile::WSS::Timestamp->loadSchemas(SCHEMA, VERSION)

See "Internals" in XML::Compile::WSS

SEE ALSO

SEE ALSO

This module is part of XML-Compile-WSS distribution version 1.00, built on October 16, 2012. 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::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 2011-2012 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