XML::Compile::WSS::BasicAuth - username/password security
XML::Compile::WSS::BasicAuth is a XML::Compile::WSS
# you need a few constants use XML::Compile::WSS::Util qw/:utp11/; # used in combination with any other XML schema my $auth = XML::Compile::WSS::BasicAuth->new ( schema => $anything , username => $user , password => $password ); # connects itself to a WSDL my $wss = XML::Compile::SOAP::WSS->new; my $wsdl = XML::Compile::WSDL11->new($wsdlfn); my $auth = $wss->basicAuth ( ... same params, except 'schema' );
The generic Web Service Security protocol is implemented by the super class XML::Compile::WSS. This extension implements "basic authentication", i.e. username/password validation.
You can best use digested passwords (UTP11_PDIGEST) In that case, a timestamp, a nonce and SHA1 hashing will keep the password a secret.
Extends "DESCRIPTION" in XML::Compile::WSS.
Extends "METHODS" in XML::Compile::WSS.
Extends "Constructors" in XML::Compile::WSS.
-Option --Defined in --Default created undef nonce 'RANDOM' password <required> prepare XML::Compile::WSS 'ALL' pwformat UTP11_PTEXT schema XML::Compile::WSS undef username <required> version XML::Compile::WSS undef wss_version XML::Compile::WSS '1.1' wsu_Id undef
See XML::Compile::WSS::dateTime() for choices of DATETIME.
[1.10] The caller of the operation may also pass a wsu_Created parameter, with the same formatting power.
wsu_Created
Only used then the password is passed as digest. This will cause the wsse:Nonce element.
wsse:Nonce
[1.10] You may add wsse_Nonce to each operation call, to overrule the global setting.
wsse_Nonce
When you pass a CODE, it will get called for each message to produce a STRING. The constant text 'RANDOM' will have a random nonce generator being called at each message.
The password in plain text. Use pwformat digest to send it encrypted over the network.
With UTP11_PTEXT, the plain-text version of the password is shown. If PTWTYPE IS UTP11_PDIGEST, the plain-text password will be encrypted with SHA1. The %options can be used to salt the digest with "nonce" and/or "created" information before the encryption.
UTP11_PTEXT
UTP11_PDIGEST
Adds a wsu:Id attribute to the created element.
wsu:Id
Extends "Attributes" in XML::Compile::WSS.
Inherited, see "Attributes" in XML::Compile::WSS
Extends "Apply" in XML::Compile::WSS.
Inherited, see "Apply" in XML::Compile::WSS
Extends "Helpers" in XML::Compile::WSS.
Inherited, see "Helpers" in XML::Compile::WSS
Extends "Internals" in XML::Compile::WSS.
Inherited, see "Internals" in XML::Compile::WSS
Extends "DETAILS" in XML::Compile::WSS.
This module is part of XML-Compile-WSS distribution version 1.14, built on May 08, 2017. Website: http://perl.overmeer.net/xml-compile/
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.
#xml-compile
irc.perl.org
Copyrights 2011-2017 by [Mark Overmeer]. For other contributors see ChangeLog.
This program is free software; you can redistribute it and/or modify it under the Artistic license. See http://dev.perl.org/licenses/artistic.html
To install XML::Compile::WSS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm XML::Compile::WSS
CPAN shell
perl -MCPAN -e shell install XML::Compile::WSS
For more information on module installation, please visit the detailed CPAN module installation guide.