XML-Compile-WSS-Signature

 view release on metacpan or  search on metacpan

dump/signature.templ  view on Meta::CPAN

# Describing complex ds:Signature
#     {http://www.w3.org/2000/09/xmldsig#}Signature
#
# Produced by XML::Compile::Translate::Template version undef
#          on Thu Jun 26 17:02:33 2025
#
# BE WARNED: in most cases, the example below cannot be used without
# interpretation.  The comments will guide you.
#
# xmlns:ds        http://www.w3.org/2000/09/xmldsig#
# xmlns:wsse      http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd

# is a ds:SignatureType
{ # is a xsd:ID
  # becomes an attribute
  Id => "id_0",

  # sequence of ds_SignedInfo, ds_SignatureValue, ds_KeyInfo,
  #   ds_Object

  # is a ds:SignedInfoType
  ds_SignedInfo =>
  { # is a xsd:ID
    # becomes an attribute
    Id => "id_0",

    # sequence of ds_CanonicalizationMethod, ds_SignatureMethod,
    #   ds_Reference

    # is a ds:CanonicalizationMethodType
    ds_CanonicalizationMethod =>
    { # is a xsd:anyURI
      # attribute Algorithm is required
      Algorithm => "http://example.com",

      # sequence of ANY

      # any element in any namespace
      # occurs any number of times
      ANY => [ "Anything", ], },

    # is a ds:SignatureMethodType
    ds_SignatureMethod =>
    { # is a xsd:anyURI
      # attribute Algorithm is required
      Algorithm => "http://example.com",

      # sequence of ds_HMACOutputLength, ANY

      # is a xsd:integer
      # is optional
      ds_HMACOutputLength => 42,

      # any element not in ds:
      # occurs any number of times
      ANY => [ "Anything", ], },

    # is a ds:ReferenceType
    # occurs 1 <= # <= unbounded times
    ds_Reference =>
    [ { # is a xsd:ID
        # becomes an attribute
        Id => "id_0",

        # is a xsd:anyURI
        # becomes an attribute
        URI => "http://example.com",

        # is a xsd:anyURI
        # becomes an attribute



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