Skip to main content

Adding SAML Statements

Adding SAML Statements

To add SAML statements to your instance of %SAML.AssertionOpens in a new tab:

  1. Create one or more instances of the appropriate statement classes:

  2. Specify properties of these instances as needed.

    For %SAML.AttributeStatementOpens in a new tab, the Attribute property is an instance of either %SAML.AttributeOpens in a new tab or %SAML.EncryptedAttributeOpens in a new tab.

    %SAML.AttributeOpens in a new tab carries attribute values in its AttributeValue property, which is a list of %SAML.AttributeValueOpens in a new tab instances.

    To add attribute values to a %SAML.AttributeOpens in a new tab instance:

    1. Create instances of %SAML.AttributeValueOpens in a new tab.

    2. Use methods of %SAML.AttributeValueOpens in a new tab to specify the attribute either as XML, as a string, or as a single child element.

    3. Create a list that contains these attribute value instances.

    4. Set the AttributeValue property of your attribute object equal to this list.

    Or directly specify the AttributeValueOverride property. For the value, use the exact string (an XML mixed content string) needed for the value.

  3. Create a list that contains these statement instances.

  4. Set the Statement property of your assertion object equal to this list.

FeedbackOpens in a new tab