3.3.3 元素<Response>

本博客采用知识共享署名 4.0 国际许可协议进行许可

当SAML响应中包含满足请求的零个或多个断言的列表时,使用<Response>消息元素。它是ResponseType复杂类型,该复杂类型继承自StatusResponseType类型并添加了以下元素:

  • <saml:Assertion>或<saml:EncryptedAssertion> [任意数量]

通过值来指定断言,或者是通过值来指定加密断言。可以在2.3.3节中查看这些元素的详细信息。

下列的schema片段定义了<Response>元素和它的ResponseType复杂类型:

<element name="Response" type="samlp:ResponseType"/>
<complexType name="ResponseType">
    <complexContent>
        <extension base="samlp:StatusResponseType">
            <choice minOccurs="0" maxOccurs="unbounded">
                <element ref="saml:Assertion"/>
                <element ref="saml:EncryptedAssertion"/>
            </choice>
        </extension>
    </complexContent>
</complexType>

Last updated

Was this helpful?