Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

interface Sustainsys.​Saml2.​Saml2P.​ISaml2Message

Assembly: Sustainsys.Saml2

Common properties of all Saml2 message implementations (both requests and responses). There is no corresponding definition in the SAML2 standard, so this is made up of the common fields of 3.2.2 Complex Type StatusResponseType (the base type for all responses) and of 3.2.1 Complex Type RequestAbstractType.

Properties

DestinationUrl
The destination of the message.
string
MessageName
The name of the message to use in a query string or form input field. Typically "SAMLRequest" or "SAMLResponse".
string
RelayState
RelayState attached to the message.
Remarks Strictly speaking, this is not part of the message, but it is delivered together with the message so we need to keep track of it together with a message.
Certificate used to sign the message with during binding, according to the signature processing rules of each binding.
string
SigningAlgorithm
The signing algorithm to use when signing the message during binding, according to the signature processing rules of each binding.
Issuer of the message.

Methods

string
ToXml​()
Serializes the message into wellformed Xml.
Returns string containing the Xml data.
ToXElement​()
Transforms the message to an XElement object tree.
Returns XElement with Xml representation of the message