mdqt 0.6.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ecdc970f76e871f3a12cd67229ca3f5a07888f0f633a21e0aead8a0a235b5f75
4
- data.tar.gz: 9576e8403a2d3c6f755a9007a341f73c9e44a18ca0d96d869c1867eff00c9855
3
+ metadata.gz: 46e40432be4833725b33540baa11fe2e1743510d95be216619948b8fd2d7b3f2
4
+ data.tar.gz: e8fa83e312ed1b8d3a309e017afd058b5bb3c586d9523b5a4ea29f62364942ec
5
5
  SHA512:
6
- metadata.gz: 0b01525dbee9c0aa0c6f7a1ec46d21bc101ac47e5a70e2e7a5b0442d5efb10477852dac8389569cfea8ddeb1ec642eea2ad011a2d9988be1dd215d5c47c75e2f
7
- data.tar.gz: 935e467dc9dfe24c06646b30527ad035e4901943d7393677b72aa6df623ad161f109083e921e5d64ca63bcca2cb25e75dcdd0b5a618a7ef66837dafbf799f287
6
+ metadata.gz: 6d8e4a2ca25ccbccbceedac4ed4f2f33010ed37acefb36d00818392640432478ed7244415c6885e763c0c6afba872f6d440c9b3fa179ddca58a2e518aeb50059
7
+ data.tar.gz: '0862c373965072f7a470e9d27559c30556a51b3e769aca8366cd63746923891f49ca978c6abbc73d9470e183abbdd0bda509cf53386288a6afc1f1946fe06849'
data/.tool-versions CHANGED
@@ -1 +1 @@
1
- ruby 3.0.2
1
+ ruby 3.2.0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.7.0
4
+
5
+ ### Improvements
6
+
7
+ - `mdqt check` can now (I think) cope with SAML metadata from Microsoft AD/ADFS services full of WS-* extensions.
8
+ - Tested with Ruby 3.2.0: `File.exists?` has been removed from 3.2.0 (it's been deprecated for years and I used it out of habit)
9
+ so this has been replaced in MDQT with `File.exist?` - as a result Ruby 3.2.0 onwards will work, but Ruby older than v2.2
10
+ will no longer work.
11
+
12
+ ### Fixes
13
+
14
+ - The inline help synopsis for `mdqt check` has been corrected.
15
+
16
+ ### Known issues
17
+
18
+ - Running mdqt without STDIN available (outside of a normal shell environment) can cause it to freeze unless
19
+ `export MDQT_STDIN=off` is set. See [Issue 8](https://github.com/Digital-Identity-Labs/mdqt/issues/8)
20
+ - Checking signatures on very large aggregate XML files can sometimes fail on M1/M2 MacOS and trying to work out why
21
+ has made me slightly balder and a lot more puzzled. See [Issue 9](https://github.com/Digital-Identity-Labs/mdqt/issues/9)
22
+
3
23
  ## 0.6.0
4
24
 
5
25
  ### New Features
data/README.md CHANGED
@@ -14,8 +14,8 @@ MDQ currently provides these features:
14
14
  - Validating metadata against SAML2 schema
15
15
  - Saving metadata to disk
16
16
  - Extracting entity IDs from both aggregate and individual metadata files
17
- - Renaming metadata files to their entity ID sha1 hashes
18
- - Creating sha1 hash symlinks to metadata files
17
+ - Renaming metadata files to their entity ID sha1 hashes (for use with LocalDynamicMetadataProvider)
18
+ - Creating sha1 hash symlinks to metadata files (also for use with Local Dynamic Metadata)
19
19
  - Listing the entity IDs of downloaded metadata files
20
20
  - Showing the full URL of an entity
21
21
  - Caching entity metadata and using Gzip compression
@@ -33,7 +33,7 @@ The UK Access Management Federation has a
33
33
  ## Installation
34
34
 
35
35
  MDQT is tested on recent MacOS and Linux, and should work with
36
- Ruby 2.1.0 or later and recent JRuby releases.
36
+ Ruby 2.2.0 or later and recent JRuby releases.
37
37
 
38
38
  ### As a gem for general use
39
39
 
@@ -193,10 +193,6 @@ The `--save-to` option requires a directory to be specified. All files will be s
193
193
  with a name based on their transformed identifier (sha1 hash) such as
194
194
  `77603e0cbda1e00d50373ca8ca20a375f5d1f171.xml`
195
195
 
196
- By adding the `--link-id' flag alternative filenames will be linked to the
197
- original file (this is currently a little experimental) to make it easier
198
- to look up the correct file using other identifiers.
199
-
200
196
  ### Other Features
201
197
 
202
198
  For more information about current settings, download results, and so on, add
@@ -248,7 +244,7 @@ To show the full MDQ URL of an entity
248
244
 
249
245
  MDQT can accept input on stdin, allowing composition and pipelining
250
246
 
251
- $ cat list_of_ids.txt | bundle exec mdqt url
247
+ $ cat list_of_ids.txt | mdqt url
252
248
 
253
249
  $ mdqt list | grep cern.ch | mdqt get --save-to cern_metadata/ --list | mdqt ls
254
250
 
data/exe/mdqt CHANGED
@@ -75,7 +75,7 @@ Commander.configure do
75
75
  end
76
76
 
77
77
  command :check do |c|
78
- c.syntax = 'mdqt check XML_FILENAME CERTIFICATE_FILENAME'
78
+ c.syntax = 'mdqt check XML_FILENAME [--verify-with ./CERTIFICATE_FILENAME]'
79
79
  c.description = 'Validate XML and check signatures'
80
80
  c.option '--verbose', 'Display extra information on stderr'
81
81
  c.option '--verify-with PATHS', Array, 'Validate file using specified certificates'
data/lib/mdqt/cli/ln.rb CHANGED
@@ -53,7 +53,7 @@ module MDQT
53
53
 
54
54
  message = ""
55
55
 
56
- if File.exists?(linkname)
56
+ if File.exist?(linkname)
57
57
  if options.force
58
58
  File.delete(linkname)
59
59
  else
@@ -43,7 +43,7 @@ module MDQT
43
43
 
44
44
  message = ""
45
45
 
46
- if File.exists?(newname)
46
+ if File.exist?(newname)
47
47
  if options.force
48
48
  File.delete(newname)
49
49
  else
@@ -55,7 +55,7 @@ module MDQT
55
55
  File.rename(filename, newname)
56
56
 
57
57
  if options.link
58
- File.delete(filename) if options.force && File.exists?(filename)
58
+ File.delete(filename) if options.force && File.exist?(filename)
59
59
  File.symlink(newname, filename) unless newname == filename
60
60
  end
61
61
 
@@ -71,7 +71,7 @@ module MDQT
71
71
  end
72
72
 
73
73
  def schema_data_fh
74
- File.open(File.join(__dir__, '../schema/saml-schema-metadata-2.0.xsd'))
74
+ File.open(File.join(__dir__, '../schema/mdqt_check_schema.xsd'))
75
75
  end
76
76
 
77
77
  end
@@ -0,0 +1,112 @@
1
+ <?xml version='1.0' encoding='UTF-8' ?>
2
+ <!--
3
+ (c) 2004-2006 BEA Systems Inc., Computer Associates International, Inc.,
4
+ International Business Machines Corporation, Microsoft Corporation,
5
+ Inc., SAP AG, Sun Microsystems, and webMethods. All rights reserved.
6
+
7
+ Permission to copy and display the WS-MetadataExchange Specification
8
+ (the "Specification"), in any medium without fee or royalty is hereby
9
+ granted, provided that you include the following on ALL copies of the
10
+ Specification that you make:
11
+
12
+ 1. A link or URL to the Specification at this location.
13
+ 2. The copyright notice as shown in the Specification.
14
+
15
+ BEA Systems, Computer Associates, IBM, Microsoft, SAP, Sun, and
16
+ webMethods (collectively, the "Authors") each agree to grant you a
17
+ license, under royalty-free and otherwise reasonable,
18
+ non-discriminatory terms and conditions, to their respective essential
19
+ patent claims that they deem necessary to implement the
20
+ WS-MetadataExchange Specification.
21
+
22
+ THE SPECIFICATION IS PROVIDED "AS IS," AND THE AUTHORS MAKE NO
23
+ REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT
24
+ LIMITED TO, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
25
+ PURPOSE, NON-INFRINGEMENT, OR TITLE; THAT THE CONTENTS OF THE
26
+ SPECIFICATION ARE SUITABLE FOR ANY PURPOSE; NOR THAT THE
27
+ IMPLEMENTATION OF SUCH CONTENTS WILL NOT INFRINGE ANY THIRD PARTY
28
+ PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.
29
+
30
+ THE AUTHORS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL,
31
+ INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF OR RELATING TO ANY
32
+ USE OR DISTRIBUTION OF THE SPECIFICATIONS.
33
+
34
+ The name and trademarks of the Authors may NOT be used in any manner,
35
+ including advertising or publicity pertaining to the Specifications or
36
+ their contents without specific, written prior permission. Title to
37
+ copyright in the Specifications will at all times remain with the
38
+ Authors.
39
+
40
+ No other rights are granted by implication, estoppel or otherwise.
41
+ -->
42
+
43
+ <xs:schema
44
+ targetNamespace='http://schemas.xmlsoap.org/ws/2004/09/mex'
45
+ xmlns:tns='http://schemas.xmlsoap.org/ws/2004/09/mex'
46
+ xmlns:wsa10='http://www.w3.org/2005/08/addressing'
47
+ xmlns:wsa04='http://schemas.xmlsoap.org/ws/2004/08/addressing'
48
+ xmlns:xs='http://www.w3.org/2001/XMLSchema'
49
+ elementFormDefault='qualified'
50
+ blockDefault='#all' >
51
+
52
+ <!-- Get Metadata request -->
53
+ <xs:element name='GetMetadata' >
54
+ <xs:complexType>
55
+ <xs:sequence>
56
+ <xs:element ref='tns:Dialect' minOccurs='0' />
57
+ <xs:element ref='tns:Identifier' minOccurs='0' />
58
+ </xs:sequence>
59
+ <xs:anyAttribute namespace='##other' processContents='lax' />
60
+ </xs:complexType>
61
+ </xs:element>
62
+
63
+ <xs:element name='Dialect' type='xs:anyURI' />
64
+ <xs:element name='Identifier' type='xs:anyURI' />
65
+
66
+ <!-- Get Metadata response -->
67
+ <xs:element name='Metadata' >
68
+ <xs:complexType>
69
+ <xs:sequence>
70
+ <xs:element ref='tns:MetadataSection'
71
+ minOccurs='0'
72
+ maxOccurs='unbounded' />
73
+ <xs:any namespace='##other' processContents='lax'
74
+ minOccurs='0'
75
+ maxOccurs='unbounded' />
76
+ </xs:sequence>
77
+ <xs:anyAttribute namespace='##other' processContents='lax' />
78
+ </xs:complexType>
79
+ </xs:element>
80
+
81
+ <xs:element name='MetadataSection' >
82
+ <xs:complexType>
83
+ <xs:choice>
84
+ <xs:any namespace='##other' processContents='lax' />
85
+ <xs:element ref='tns:MetadataReference' />
86
+ <xs:element ref='tns:Location' />
87
+ </xs:choice>
88
+ <xs:attribute name='Dialect' type='xs:anyURI' use='required' />
89
+ <xs:attribute name='Identifier' type='xs:anyURI' />
90
+ <xs:anyAttribute namespace='##other' processContents='lax' />
91
+ </xs:complexType>
92
+ </xs:element>
93
+
94
+ <!--
95
+ Ideally, the type of the MetadataReference would have been
96
+ the union of wsa04:EndpointReferenceType and
97
+ wsa10:EndpointReferenceType but unfortunately xs:union only
98
+ works for simple types. As a result, we have to define
99
+ the mex:MetadataReference using xs:any.
100
+ -->
101
+
102
+ <xs:element name='MetadataReference'>
103
+ <xs:complexType>
104
+ <xs:sequence>
105
+ <xs:any minOccurs='1' maxOccurs='unbounded'
106
+ processContents='lax' namespace='##other' />
107
+ </xs:sequence>
108
+ </xs:complexType>
109
+ </xs:element>
110
+ <xs:element name='Location'
111
+ type='xs:anyURI' />
112
+ </xs:schema>
@@ -0,0 +1,5 @@
1
+ <?xml version="1.0"?>
2
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://digitalidentitylabs.com/r/schema/saml_metadata_bundle">
3
+ <xs:import namespace="urn:oasis:names:tc:SAML:2.0:metadata" schemaLocation="saml-schema-metadata-2.0.xsd" />
4
+ <xs:import namespace="http://docs.oasis-open.org/wsfed/federation/200706" schemaLocation="ws-federation.xsd" />
5
+ </xs:schema>
@@ -0,0 +1,195 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ 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 such rights might or might not be available; neither does it represent that it has made any effort to identify any such rights. Information on OASIS's procedures with respect to rights in OASIS specifications can be found at the OASIS website. Copies of claims of rights made available for publication and any assurances of licenses to be made available, or the result of an attempt made to obtain a general license or permission for the use of such proprietary rights by implementors or users of this specification, can be obtained from the OASIS Executive Director.
4
+ 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 to the OASIS Executive Director.
5
+ Copyright © OASIS Open 2002-2004. All Rights Reserved.
6
+ 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 restriction of any kind, provided that the above copyright notice and this paragraph are included on all such copies and derivative works. However, this document itself does not be modified in any way, such as by removing the copyright notice or references to OASIS, except as needed for the purpose of developing OASIS specifications, in which case the procedures for copyrights defined in the OASIS Intellectual Property Rights document must be followed, or as required to translate it into languages other than English.
7
+ The limited permissions granted above are perpetual and will not be revoked by OASIS or its successors or assigns.
8
+ 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 RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
9
+ -->
10
+ <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-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" elementFormDefault="qualified" attributeFormDefault="unqualified" blockDefault="#all" version="0.2">
11
+ <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"/>
12
+ <xsd:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2001/xml.xsd"/>
13
+ <xsd:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="http://www.w3.org/TR/xmldsig-core/xmldsig-core-schema.xsd"/>
14
+ <xsd:complexType name="AttributedString">
15
+ <xsd:annotation>
16
+ <xsd:documentation>This type represents an element with arbitrary attributes.</xsd:documentation>
17
+ </xsd:annotation>
18
+ <xsd:simpleContent>
19
+ <xsd:extension base="xsd:string">
20
+ <xsd:attribute ref="wsu:Id"/>
21
+ <xsd:anyAttribute namespace="##other" processContents="lax"/>
22
+ </xsd:extension>
23
+ </xsd:simpleContent>
24
+ </xsd:complexType>
25
+ <xsd:complexType name="PasswordString">
26
+ <xsd:annotation>
27
+ <xsd:documentation>This type is used for password elements per Section 4.1.</xsd:documentation>
28
+ </xsd:annotation>
29
+ <xsd:simpleContent>
30
+ <xsd:extension base="wsse:AttributedString">
31
+ <xsd:attribute name="Type" type="xsd:anyURI"/>
32
+ </xsd:extension>
33
+ </xsd:simpleContent>
34
+ </xsd:complexType>
35
+ <xsd:complexType name="EncodedString">
36
+ <xsd:annotation>
37
+ <xsd:documentation>This type is used for elements containing stringified binary data.</xsd:documentation>
38
+ </xsd:annotation>
39
+ <xsd:simpleContent>
40
+ <xsd:extension base="wsse:AttributedString">
41
+ <xsd:attribute name="EncodingType" type="xsd:anyURI"/>
42
+ </xsd:extension>
43
+ </xsd:simpleContent>
44
+ </xsd:complexType>
45
+ <xsd:complexType name="UsernameTokenType">
46
+ <xsd:annotation>
47
+ <xsd:documentation>This type represents a username token per Section 4.1</xsd:documentation>
48
+ </xsd:annotation>
49
+ <xsd:sequence>
50
+ <xsd:element name="Username" type="wsse:AttributedString"/>
51
+ <xsd:any processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
52
+ </xsd:sequence>
53
+ <xsd:attribute ref="wsu:Id"/>
54
+ <xsd:anyAttribute namespace="##other" processContents="lax"/>
55
+ </xsd:complexType>
56
+ <xsd:complexType name="BinarySecurityTokenType">
57
+ <xsd:annotation>
58
+ <xsd:documentation>A security token that is encoded in binary</xsd:documentation>
59
+ </xsd:annotation>
60
+ <xsd:simpleContent>
61
+ <xsd:extension base="wsse:EncodedString">
62
+ <xsd:attribute name="ValueType" type="xsd:anyURI"/>
63
+ </xsd:extension>
64
+ </xsd:simpleContent>
65
+ </xsd:complexType>
66
+ <xsd:complexType name="KeyIdentifierType">
67
+ <xsd:annotation>
68
+ <xsd:documentation>A security token key identifier</xsd:documentation>
69
+ </xsd:annotation>
70
+ <xsd:simpleContent>
71
+ <xsd:extension base="wsse:EncodedString">
72
+ <xsd:attribute name="ValueType" type="xsd:anyURI"/>
73
+ </xsd:extension>
74
+ </xsd:simpleContent>
75
+ </xsd:complexType>
76
+ <xsd:simpleType name="tUsage">
77
+ <xsd:annotation>
78
+ <xsd:documentation>Typedef to allow a list of usages (as URIs).</xsd:documentation>
79
+ </xsd:annotation>
80
+ <xsd:list itemType="xsd:anyURI"/>
81
+ </xsd:simpleType>
82
+ <xsd:attribute name="Usage" type="tUsage">
83
+ <xsd:annotation>
84
+ <xsd:documentation>This global attribute is used to indicate the usage of a referenced or indicated token within the containing context</xsd:documentation>
85
+ </xsd:annotation>
86
+ </xsd:attribute>
87
+ <xsd:complexType name="ReferenceType">
88
+ <xsd:annotation>
89
+ <xsd:documentation>This type represents a reference to an external security token.</xsd:documentation>
90
+ </xsd:annotation>
91
+ <xsd:attribute name="URI" type="xsd:anyURI"/>
92
+ <xsd:attribute name="ValueType" type="xsd:anyURI"/>
93
+ <xsd:anyAttribute namespace="##other" processContents="lax"/>
94
+ </xsd:complexType>
95
+ <xsd:complexType name="EmbeddedType">
96
+ <xsd:annotation>
97
+ <xsd:documentation>This type represents a reference to an embedded security token.</xsd:documentation>
98
+ </xsd:annotation>
99
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
100
+ <xsd:any processContents="lax"/>
101
+ </xsd:choice>
102
+ <xsd:attribute name="ValueType" type="xsd:anyURI"/>
103
+ <xsd:anyAttribute namespace="##other" processContents="lax"/>
104
+ </xsd:complexType>
105
+ <xsd:complexType name="SecurityTokenReferenceType">
106
+ <xsd:annotation>
107
+ <xsd:documentation>This type is used reference a security token.</xsd:documentation>
108
+ </xsd:annotation>
109
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
110
+ <xsd:any processContents="lax"/>
111
+ </xsd:choice>
112
+ <xsd:attribute ref="wsu:Id"/>
113
+ <xsd:attribute ref="wsse:Usage"/>
114
+ <xsd:anyAttribute namespace="##other" processContents="lax"/>
115
+ </xsd:complexType>
116
+ <xsd:complexType name="SecurityHeaderType">
117
+ <xsd:annotation>
118
+ <xsd:documentation>This complexType defines header block to use for security-relevant data directed at a specific SOAP actor.</xsd:documentation>
119
+ </xsd:annotation>
120
+ <xsd:sequence>
121
+ <xsd:any processContents="lax" minOccurs="0" maxOccurs="unbounded">
122
+ <xsd:annotation>
123
+ <xsd:documentation>The use of "any" is to allow extensibility and different forms of security data.</xsd:documentation>
124
+ </xsd:annotation>
125
+ </xsd:any>
126
+ </xsd:sequence>
127
+ <xsd:anyAttribute namespace="##other" processContents="lax"/>
128
+ </xsd:complexType>
129
+ <xsd:complexType name="TransformationParametersType">
130
+ <xsd:annotation>
131
+ <xsd:documentation>This complexType defines a container for elements to be specified from any namespace as properties/parameters of a DSIG transformation.</xsd:documentation>
132
+ </xsd:annotation>
133
+ <xsd:sequence>
134
+ <xsd:any processContents="lax" minOccurs="0" maxOccurs="unbounded">
135
+ <xsd:annotation>
136
+ <xsd:documentation>The use of "any" is to allow extensibility from any namespace.</xsd:documentation>
137
+ </xsd:annotation>
138
+ </xsd:any>
139
+ </xsd:sequence>
140
+ <xsd:anyAttribute namespace="##other" processContents="lax"/>
141
+ </xsd:complexType>
142
+ <xsd:element name="UsernameToken" type="wsse:UsernameTokenType">
143
+ <xsd:annotation>
144
+ <xsd:documentation>This element defines the wsse:UsernameToken element per Section 4.1.</xsd:documentation>
145
+ </xsd:annotation>
146
+ </xsd:element>
147
+ <xsd:element name="BinarySecurityToken" type="wsse:BinarySecurityTokenType">
148
+ <xsd:annotation>
149
+ <xsd:documentation>This element defines the wsse:BinarySecurityToken element per Section 4.2.</xsd:documentation>
150
+ </xsd:annotation>
151
+ </xsd:element>
152
+ <xsd:element name="Reference" type="wsse:ReferenceType">
153
+ <xsd:annotation>
154
+ <xsd:documentation>This element defines a security token reference</xsd:documentation>
155
+ </xsd:annotation>
156
+ </xsd:element>
157
+ <xsd:element name="Embedded" type="wsse:EmbeddedType">
158
+ <xsd:annotation>
159
+ <xsd:documentation>This element defines a security token embedded reference</xsd:documentation>
160
+ </xsd:annotation>
161
+ </xsd:element>
162
+ <xsd:element name="KeyIdentifier" type="wsse:KeyIdentifierType">
163
+ <xsd:annotation>
164
+ <xsd:documentation>This element defines a key identifier reference</xsd:documentation>
165
+ </xsd:annotation>
166
+ </xsd:element>
167
+ <xsd:element name="SecurityTokenReference" type="wsse:SecurityTokenReferenceType">
168
+ <xsd:annotation>
169
+ <xsd:documentation>This element defines the wsse:SecurityTokenReference per Section 4.3.</xsd:documentation>
170
+ </xsd:annotation>
171
+ </xsd:element>
172
+ <xsd:element name="Security" type="wsse:SecurityHeaderType">
173
+ <xsd:annotation>
174
+ <xsd:documentation>This element defines the wsse:Security SOAP header element per Section 4.</xsd:documentation>
175
+ </xsd:annotation>
176
+ </xsd:element>
177
+ <xsd:element name="TransformationParameters" type="wsse:TransformationParametersType">
178
+ <xsd:annotation>
179
+ <xsd:documentation>This element contains properties for transformations from any namespace, including DSIG.</xsd:documentation>
180
+ </xsd:annotation>
181
+ </xsd:element>
182
+ <xsd:element name="Password" type="wsse:PasswordString"/>
183
+ <xsd:element name="Nonce" type="wsse:EncodedString"/>
184
+ <xsd:simpleType name="FaultcodeEnum">
185
+ <xsd:restriction base="xsd:QName">
186
+ <xsd:enumeration value="wsse:UnsupportedSecurityToken"/>
187
+ <xsd:enumeration value="wsse:UnsupportedAlgorithm"/>
188
+ <xsd:enumeration value="wsse:InvalidSecurity"/>
189
+ <xsd:enumeration value="wsse:InvalidSecurityToken"/>
190
+ <xsd:enumeration value="wsse:FailedAuthentication"/>
191
+ <xsd:enumeration value="wsse:FailedCheck"/>
192
+ <xsd:enumeration value="wsse:SecurityTokenUnavailable"/>
193
+ </xsd:restriction>
194
+ </xsd:simpleType>
195
+ </xsd:schema>
@@ -0,0 +1,108 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ 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 such rights might or might not be available; neither does it represent that it has made any effort to identify any such rights. Information on OASIS's procedures with respect to rights in OASIS specifications can be found at the OASIS website. Copies of claims of rights made available for publication and any assurances of licenses to be made available, or the result of an attempt made to obtain a general license or permission for the use of such proprietary rights by implementors or users of this specification, can be obtained from the OASIS Executive Director.
4
+ 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 to the OASIS Executive Director.
5
+ Copyright © OASIS Open 2002-2004. All Rights Reserved.
6
+ 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 restriction of any kind, provided that the above copyright notice and this paragraph are included on all such copies and derivative works. However, this document itself does not be modified in any way, such as by removing the copyright notice or references to OASIS, except as needed for the purpose of developing OASIS specifications, in which case the procedures for copyrights defined in the OASIS Intellectual Property Rights document must be followed, or as required to translate it into languages other than English.
7
+ The limited permissions granted above are perpetual and will not be revoked by OASIS or its successors or assigns.
8
+ 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 RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
9
+ -->
10
+ <xsd:schema targetNamespace="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
11
+
12
+
13
+
14
+ xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
15
+ elementFormDefault="qualified" attributeFormDefault="unqualified" version="0.1">
16
+ <!-- // Fault Codes /////////////////////////////////////////// -->
17
+ <xsd:simpleType name="tTimestampFault">
18
+ <xsd:annotation>
19
+ <xsd:documentation>
20
+ This type defines the fault code value for Timestamp message expiration.
21
+ </xsd:documentation>
22
+ </xsd:annotation>
23
+ <xsd:restriction base="xsd:QName">
24
+ <xsd:enumeration value="wsu:MessageExpired"/>
25
+ </xsd:restriction>
26
+ </xsd:simpleType>
27
+ <!-- // Global attributes //////////////////////////////////// -->
28
+ <xsd:attribute name="Id" type="xsd:ID">
29
+ <xsd:annotation>
30
+ <xsd:documentation>
31
+ This global attribute supports annotating arbitrary elements with an ID.
32
+ </xsd:documentation>
33
+ </xsd:annotation>
34
+ </xsd:attribute>
35
+ <xsd:attributeGroup name="commonAtts">
36
+ <xsd:annotation>
37
+ <xsd:documentation>
38
+ Convenience attribute group used to simplify this schema.
39
+ </xsd:documentation>
40
+ </xsd:annotation>
41
+ <xsd:attribute ref="wsu:Id" use="optional"/>
42
+ <xsd:anyAttribute namespace="##other" processContents="lax"/>
43
+ </xsd:attributeGroup>
44
+ <!-- // Utility types //////////////////////////////////////// -->
45
+ <xsd:complexType name="AttributedDateTime">
46
+ <xsd:annotation>
47
+ <xsd:documentation>
48
+ This type is for elements whose [children] is a psuedo-dateTime and can have arbitrary attributes.
49
+ </xsd:documentation>
50
+ </xsd:annotation>
51
+ <xsd:simpleContent>
52
+ <xsd:extension base="xsd:string">
53
+ <xsd:attributeGroup ref="wsu:commonAtts"/>
54
+ </xsd:extension>
55
+ </xsd:simpleContent>
56
+ </xsd:complexType>
57
+ <xsd:complexType name="AttributedURI">
58
+ <xsd:annotation>
59
+ <xsd:documentation>
60
+ This type is for elements whose [children] is an anyURI and can have arbitrary attributes.
61
+ </xsd:documentation>
62
+ </xsd:annotation>
63
+ <xsd:simpleContent>
64
+ <xsd:extension base="xsd:anyURI">
65
+ <xsd:attributeGroup ref="wsu:commonAtts"/>
66
+ </xsd:extension>
67
+ </xsd:simpleContent>
68
+ </xsd:complexType>
69
+ <!-- // Timestamp header components /////////////////////////// -->
70
+ <xsd:complexType name="TimestampType">
71
+ <xsd:annotation>
72
+ <xsd:documentation>
73
+ This complex type ties together the timestamp related elements into a composite type.
74
+ </xsd:documentation>
75
+ </xsd:annotation>
76
+ <xsd:sequence>
77
+ <xsd:element ref="wsu:Created" minOccurs="0"/>
78
+ <xsd:element ref="wsu:Expires" minOccurs="0"/>
79
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
80
+ <xsd:any namespace="##other" processContents="lax"/>
81
+ </xsd:choice>
82
+ </xsd:sequence>
83
+ <xsd:attributeGroup ref="wsu:commonAtts"/>
84
+ </xsd:complexType>
85
+ <xsd:element name="Timestamp" type="wsu:TimestampType">
86
+ <xsd:annotation>
87
+ <xsd:documentation>
88
+ This element allows Timestamps to be applied anywhere element wildcards are present,
89
+ including as a SOAP header.
90
+ </xsd:documentation>
91
+ </xsd:annotation>
92
+ </xsd:element>
93
+ <!-- global element decls to allow individual elements to appear anywhere -->
94
+ <xsd:element name="Expires" type="wsu:AttributedDateTime">
95
+ <xsd:annotation>
96
+ <xsd:documentation>
97
+ This element allows an expiration time to be applied anywhere element wildcards are present.
98
+ </xsd:documentation>
99
+ </xsd:annotation>
100
+ </xsd:element>
101
+ <xsd:element name="Created" type="wsu:AttributedDateTime">
102
+ <xsd:annotation>
103
+ <xsd:documentation>
104
+ This element allows a creation time to be applied anywhere element wildcards are present.
105
+ </xsd:documentation>
106
+ </xsd:annotation>
107
+ </xsd:element>
108
+ </xsd:schema>