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.

class Sustainsys.​Saml2.​Saml2P.​Saml2Response

Assembly: Sustainsys.Saml2

Inheritance: object → Saml2Response

Represents a SAML2 response according to 3.3.3. The class is immutable (to an external observer. Internal state is lazy initiated).

Properties

Certificate used to sign the message with during binding, according to the signature processing rules of each binding.
public string
SigningAlgorithm
The signing algorithm to use when signing the message during binding, according to the signature processing rules of each binding.
XmlElement
The response as an xml element. Either the original xml, or xml that is generated from supplied data.
public string
MessageName
SAML Message name for responses, hard coded to SAMLResponse.
Id of the response message.
Expected InResponseTo as extracted from
InResponseTo id.
IssueInstant
Issue instant of the response message.
Status
Status code of the message according to the SAML2 spec section 3.2.2.2
public string
StatusMessage
StatusMessage of the message according to the SAML2 spec section 3.2.2.1
public string
SecondLevelStatus
Optional status which MAY give additional information about the cause of the problem (according to the SAML2 spec section 3.2.2.2))))))))). Because it may change in future specifications let's not make enum out of it yet.
Issuer
Issuer (= sender) of the response.
public System.​Uri
DestinationUrl
The destination of the response message.
public string
RelayState
RelayState attached to the message.
SessionNotOnOrAfter
Session termination time for a session generated from this response.

Methods

ToXElement​()
Returns XElement with Xml representation of the message
Transforms the message to an XElement object tree.
Remarks This operation is inefficient, but it is only used by the StubIdp so it's acceptable.
public string
ToXml​()
Returns string containing xml.
string representation of the Saml2Response serialized to xml.
GetClaims​(Configuration.IOptions options)
options Service provider settings used when processing the response into claims.
Returns ClaimsIdentities
Extract claims from the assertions contained in the response.
public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object