XML-Compile-WSS

 view release on metacpan or  search on metacpan

lib/XML/Compile/WSS.pod  view on Meta::CPAN

in L<XML::Compile::WSS::Util|XML::Compile::WSS::Util>.

=over 4

=item * XML Security Generic Hybrid Ciphers

F<http://www.w3.org/TR/2011/CR-xmlsec-generic-hybrid-20110303/>, 3 March 2011

=item * XML Signature Properties

F<http://www.w3.org/TR/2011/CR-xmldsig-properties-20110303/>, 3 March 2011

=item * XML Signature Syntax and Processing Version 1.1

F<http://www.w3.org/TR/2011/CR-xmldsig-core1-20110303/>, 3 March 2011

=item * SOAP message security

F<http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0.pdf>, March 2004

=item * XML Signature Syntax and Processing (Second Edition)

F<http://www.w3.org/TR/2008/REC-xmldsig-core-20080610/>, 10 June 2008

=item * RFC4050 Using the ECDSA for XML Digital Signatures

F<http://www.ietf.org/rfc/rfc4050.txt>, april 2005

=item * RFC4051 Additional XML Security Uniform Resource Identifiers (URIs)

F<http://www.ietf.org/rfc/rfc4051.txt>, april 2005

=item * XML Encryption Syntax and Processing

lib/XML/Compile/WSS/Util.pm  view on Meta::CPAN

use Log::Report    'xml-compile-wss';
use MIME::Base64   qw/decode_base64 encode_base64/;

my @wss11 = qw/
WSS_11		WSS11MODULE	WSM_10		WSM_11		WSU_10
WSSE_10
DSIG_NS		XENC_NS		DSIG11_NS	DSP_NS		DSIG_MORE_NS
GHC_NS		WSU_NS
 /;

my @dsig  = qw/
DSIG_BASE64	DSIG_HMAC_SHA1	DSIG_OBJECT	DSIG_SHA1	DSIG_X509_DATA
DSIG_DSA_KV	DSIG_MANIFEST	DSIG_PGP_DATA	DSIG_SIGPROPS	DSIG_XPATH
DSIG_DSA_SHA1	DSIG_MGMT_DATA	DSIG_RSA_KV	DSIG_SPKI_DATA	DSIG_XSLT
DSIG_ENV_SIG	DSIG_NS		DSIG_RSA_SHA1	DSIG_X509_CERT
 /;

my @dsig_more = qw/
DSIGM_MD5		DSIGM_ECDSA_SHA224	DSIGM_CAM192
DSIGM_SHA224		DSIGM_ECDSA_SHA256	DSIGM_CAM256
DSIGM_SHA384		DSIGM_ECDSA_SHA384	DSIGM_KW_CAM128
DSIGM_HMAC_MD5		DSIGM_ECDSA_SHA512	DSIGM_KW_CAM192
DSIGM_HMAC_SHA224	DSIGM_ESIGN_SHA1	DSIGM_KW_CAM256
DSIGM_HMAC_SHA256	DSIGM_ESIGN_SHA224	DSIGM_PSEC_KEM
DSIGM_HMAC_SHA384	DSIGM_ESIGN_SHA256	DSIGM_KV
DSIGM_HMAC_SHA512	DSIGM_ESIGN_SHA384	DSIGM_RETR_METHOD
DSIGM_HMAC_RIPEMD160	DSIGM_ESIGN_SHA512	DSIGM_KEY_NAME
DSIGM_RSA_MD5		DSIGM_DSA_SHA256	DSIGM_RAW_X509
DSIGM_RSA_SHA256	DSIGM_CURVE_URN		DSIGM_RAW_PGP
DSIGM_RSA_SHA384	DSIGM_XPTR		DSIGM_RAW_SPKIS
DSIGM_RSA_SHA512	DSIGM_ARCFOUR		DSIGM_PKCS7_DATA
DSIGM_ECDSA_SHA1	DSIGM_CAM128		DSIGM_RAW_PKCS7_DATA
 /;

my @dsig11 = qw/
DSIG11_NS		DSIG11_EC_KV		DSIG11_DER_KV
 /;

my @xtp10 = qw/XTP10_X509 XTP10_X509v3 XTP10_X509PKI XTP10_X509PKC/;

my @wsm10 = qw/
WSM10_BASE64	WSM10_STR_TRANS
wsm_encoded	wsm_decoded
 /;

lib/XML/Compile/WSS/Util.pm  view on Meta::CPAN

my @dsp = qw/
DSP_NS
 /;

my @utp11 = qw/
UTP11_PTEXT     UTP11_PDIGEST   UTP11_USERNAME
 /;

our @EXPORT    = 'WSS11MODULE';
our @EXPORT_OK
  = ( @wss11, @dsig, @dsig_more, @dsig11, @xenc, @ghc, @dsp, @utp11
    , @wsm10, @wsm11, @xtp10);

our %EXPORT_TAGS =
  ( wss11  => \@wss11
  , dsig   => \@dsig
  , dsig11 => \@dsig11
  , dsigm  => \@dsig_more
  , xenc   => \@xenc
  , ghc    => \@ghc
  , dsp    => \@dsp
  , utp11  => \@utp11
  , xtp10  => \@xtp10
  , wsm10  => \@wsm10
  , wsm11  => \@wsm11
  );


# Path components, not exported
use constant
  { WSS_BASE => 'http://docs.oasis-open.org/wss'
  , DSIG     => 'http://www.w3.org/2000/09/xmldsig'
  , DSIG11   => 'http://www.w3.org/2009/xmldsig11'
  , DSIGM    => 'http://www.w3.org/2001/04/xmldsig-more'
  , XENC     => 'http://www.w3.org/2001/04/xmlenc'
  , GHC      => 'http://www.w3.org/2010/xmlsec-ghc'
  , DSP      => 'http://www.w3.org/2009/xmldsig-properties'
  };


use constant WSS_WG200401 => WSS_BASE.'/2004/01/oasis-200401-wss';
use constant
  { WSU_10  => WSS_WG200401.'-wssecurity-utility-1.0.xsd' 
  , WSSE_10 => WSS_WG200401.'-wssecurity-secext-1.0.xsd'
  , UTP_10  => WSS_WG200401.'-username-token-profile-1.0'
  , XTP_10  => WSS_WG200401.'-x509-token-profile-1.0'
  , WSM_10  => WSS_WG200401.'-soap-message-security-1.0'

lib/XML/Compile/WSS/Util.pod  view on Meta::CPAN

[1.08] Defines convenient constants in the soap-messages namespace.  See
F<http://docs.oasis-open.org/wss-m/wss/v1.1.1/os/wss-SOAPMessageSecurity-v1.1.1-os.html>

=head2 Export tag C<:utp11>

Defines constants for the username-token-profile.
See F<http://docs.oasis-open.org/wss/v1.1/wss-v1.1-spec-os-UsernameTokenProfile.pdf>

  UTP11_PTEXT   UTP11_PDIGEST   UTP11_USERNAME

=head2 Export tag :dsig

Defines convenient constants for signature reference URIs, mainly specified in
F<http://www.w3.org/TR/2008/REC-xmldsig-core-20080610/>

  DSIG_NS           DSIG_MGMT_DATA      DSIG_XML11_NO_COMM
  DSIG_SIGPROPS     DSIG_X509_CERT      DSIG_XML11_COMMENTS
  DSIG_OBJECT       DSIG_SHA1           DSIG_XMLEXC_NO_COMM
  DSIG_MANIFEST     DSIG_BASE64         DSIG_XMLEXC_COMMENTS
  DSIG_DSA_KV       DSIG_HMAC_SHA1      DSIG_XSLT
  DSIG_RSA_KV       DSIG_DSA_SHA1       DSIG_XPATH
  DSIG_X509_DATA    DSIG_RSA_SHA1       DSIG_ENV_SIG
  DSIG_PGP_DATA     DSIG_XML10_NO_COMM
  DSIG_SPKI_DATA    DSIG_XML10_COMMENTS

=head2 Export tag :dsigm (dsigm-more)

Defines constants defined by RFC4050 and RFC4051.

=over 4

=item * RFC4050 Using the ECDSA for XML Digital Signatures F<http://www.ietf.org/rfc/rfc4050.txt>

=item * RFC4051 Additional XML Security Uniform Resource Identifiers (URIs) F<http://www.ietf.org/rfc/rfc4051.txt>

=back

lib/XML/Compile/WSS/Util.pod  view on Meta::CPAN

  DSIGM_HMAC_SHA256     DSIGM_ESIGN_SHA224    DSIGM_PSEC_KEM
  DSIGM_HMAC_SHA384     DSIGM_ESIGN_SHA256    DSIGM_KV
  DSIGM_HMAC_SHA512     DSIGM_ESIGN_SHA384    DSIGM_RETR_METHOD
  DSIGM_HMAC_RIPEMD160  DSIGM_ESIGN_SHA512    DSIGM_KEY_NAME
  DSIGM_RSA_MD5         DSIGM_DSA_SHA256      DSIGM_RAW_X509
  DSIGM_RSA_SHA256      DSIGM_CURVE_URN       DSIGM_RAW_PGP
  DSIGM_RSA_SHA384      DSIGM_XPTR            DSIGM_RAW_SPKIS
  DSIGM_RSA_SHA512      DSIGM_ARCFOUR         DSIGM_PKCS7_DATA
  DSIGM_ECDSA_SHA1      DSIGM_CAM128          DSIGM_RAW_PKCS7_DATA

=head2 Export tag :dsig11

Defines convenient constants for the extensions on dsig, defined in
F<http://www.w3.org/TR/2011/CR-xmldsig-core1-20110303/>

  DSIG11_NS       DSIG11_EC_KV    DSIG11_DER_KV   DSIG_X509_CERT

=head2 Export tag :xenc

Defines convenient constants for encryption referencing URIs, mainly
specified in F<http://www.w3.org/TR/2002/REC-xmlenc-core-20021210/>

  XENC_NS         XENC_PROPS      XENC_AES128     XENC_DH
  XENC_MIME_TYPE  XENC_SHA256     XENC_AES192     XENC_DH_KV

lib/XML/Compile/WSS/Util.pod  view on Meta::CPAN


Defines convenient constants for generic hybrid
algorithm referencing URIs, as specified in
F<http://www.w3.org/TR/2011/CR-xmlsec-generic-hybrid-20110303/>

  GHC_NS      GHC_GENERIC     GHC_RSAES_KEM     GHC_ECIES_KEM

=head2 Export tag :dsp

Defines constants for "Digital signature properties" as specified in
F<http://www.w3.org/TR/2011/CR-xmldsig-properties-20110303/>

  DSP_NS

=head1 SEE ALSO

This module is part of XML-Compile-WSS distribution version 1.14,
built on May 08, 2017. 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> .

lib/XML/Compile/WSS/wss10/200306-secext.xsd  view on Meta::CPAN

<?xml version="1.0" encoding="UTF-8"?>
<!-- 
OASIS takes no position regarding the validity or scope of any intellectual property or other rights that might be claimed to pertain to the implementation or use of the technology described in this document or the extent to which any license under s...
OASIS invites any interested party to bring to its attention any copyrights, patents or patent applications, or other proprietary rights which may cover technology that may be required to implement this specification. Please address the information t...
Copyright © OASIS Open 2002. All Rights Reserved.
This document and translations of it may be copied and furnished to others, and derivative works that comment on or otherwise explain it or assist in its implementation may be prepared, copied, published and distributed, in whole or in part, without ...
The limited permissions granted above are perpetual and will not be revoked by OASIS or its successors or assigns.
This document and the information contained herein is provided on an “AS IS” basis and OASIS DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGH...
-->
<xsd:schema targetNamespace="http://schemas.xmlsoap.org/ws/2003/06/secext" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsu="http://schemas.xmlsoap.org/ws/2003/06/utility" xmlns:wsse="http://schemas...
	<xsd:import namespace="http://schemas.xmlsoap.org/ws/2003/06/utility" schemaLocation="http://schemas.xmlsoap.org/ws/2003/06/utility"/>
	<xsd:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2001/xml.xsd"/>
	<xsd:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="http://www.w3.org/TR/xmldsig-core/xmldsig-core-schema.xsd"/>
	<xsd:complexType name="AttributedString">
		<xsd:annotation>
			<xsd:documentation>This type represents an element with arbitrary attributes.</xsd:documentation>
		</xsd:annotation>
		<xsd:simpleContent>
			<xsd:extension base="xsd:string">
				<xsd:attribute ref="wsu:Id"/>
				<xsd:anyAttribute namespace="##other" processContents="lax"/>
			</xsd:extension>
		</xsd:simpleContent>

lib/XML/Compile/WSS/wss11/200401-secext10.xsd  view on Meta::CPAN

<?xml version="1.0" encoding="UTF-8"?>
<!-- 
OASIS takes no position regarding the validity or scope of any intellectual property or other rights that might be claimed to pertain to the implementation or use of the technology described in this document or the extent to which any license under s...
OASIS invites any interested party to bring to its attention any copyrights, patents or patent applications, or other proprietary rights which may cover technology that may be required to implement this specification. Please address the information t...
Copyright © OASIS Open 2002-2004. All Rights Reserved.
This document and translations of it may be copied and furnished to others, and derivative works that comment on or otherwise explain it or assist in its implementation may be prepared, copied, published and distributed, in whole or in part, without ...
The limited permissions granted above are perpetual and will not be revoked by OASIS or its successors or assigns.
This document and the information contained herein is provided on an “AS IS” basis and OASIS DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGH...
-->
<xsd:schema targetNamespace="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secex...
	<xsd:import namespace="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" schemaLocation="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"/>
	<xsd:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2001/xml.xsd"/>
	<xsd:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="http://www.w3.org/TR/xmldsig-core/xmldsig-core-schema.xsd"/>
	<xsd:complexType name="AttributedString">
		<xsd:annotation>
			<xsd:documentation>This type represents an element with arbitrary attributes.</xsd:documentation>
		</xsd:annotation>
		<xsd:simpleContent>
			<xsd:extension base="xsd:string">
				<xsd:attribute ref="wsu:Id"/>
				<xsd:anyAttribute namespace="##other" processContents="lax"/>
			</xsd:extension>
		</xsd:simpleContent>



( run in 1.258 second using v1.01-cache-2.11-cpan-71847e10f99 )