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.​Saml2RequestBase
Assembly: Sustainsys.Saml2
Inheritance: object → Saml2RequestBase
Implemented Interfaces
Base class for saml requests, corresponds to section 3.2.1 in SAML Core specification.
Properties
The id of the request.
public
string
Version
Version of the SAML request. Always returns "2.0"
public
string
IssueInstant
The instant that the request was issued (well actually, created).
public
string
MessageName
SAML message name for requests - hard coded to SAMLRequest.
public
System.​Uri
DestinationUrl
The destination of the request.
Issuer
The issuer of the request.
public
System.​Collections.​Generic.​List<​System.​Xml.​Linq.​XElement>
ExtensionContents
The additional content to append within an Extensions element.
protected
string
LocalName
The SAML2 request name
public
string
RelayState
RelayState attached to the message.
SigningCertificate
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.
Methods
ToXElement​()
Transforms the message to an XElement object tree.
Returns XElement with Xml representation of the message
protected
System.​Collections.​Generic.​IEnumerable<​System.​Xml.​Linq.​XObject>
ToXNodes​()
Creates XNodes for the fields of the Saml2RequestBase class. These
nodes should be added when creating XML out of derived classes.
protected
void
ReadBaseProperties​(System.​Xml.​XmlElement xml)
Reads the request properties present in Saml2RequestBase
Also validates basic properties of the request
xml
The xml document to parse
public
string
ToXml​()
Serializes the message into wellformed Xml.
Returns string containing the Xml data.
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object