Class ArtifactResolver
Supports the artifact resolution profile.
Inheritance
Inherited Members
Namespace: ComponentSpace.SAML2.Profiles.ArtifactResolution
Assembly: ComponentSpace.Saml2.dll
Syntax
public static class ArtifactResolver
Remarks
Refer to the Profiles for the OASIS Security Assertion Markup Language (SAML) V2.0 specification for further details.
Methods
ReceiveArtifactResolve(HttpRequestBase)
Receives an artifact resolve request.
Declaration
public static XmlElement ReceiveArtifactResolve(HttpRequestBase httpRequest)
Parameters
Type | Name | Description |
---|---|---|
System.Web.HttpRequestBase | httpRequest | The HTTP request on which to receive the artifact resolve request. |
Returns
Type | Description |
---|---|
System.Xml.XmlElement | The artifact resolve request. |
Exceptions
Type | Condition |
---|---|
SAMLProfileException | Thrown when the receive fails. |
SendArtifactResponse(HttpResponseBase, XmlElement)
Sends an artifact response containing the SAML message associated with the artifact.
Declaration
public static void SendArtifactResponse(HttpResponseBase httpResponse, XmlElement artifactResponse)
Parameters
Type | Name | Description |
---|---|---|
System.Web.HttpResponseBase | httpResponse | The HTTP response used to send the SAML response. |
System.Xml.XmlElement | artifactResponse | The artifact response. |
Exceptions
Type | Condition |
---|---|
SAMLProfileException | Thrown when the send fails. |
SendRequestReceiveResponse(WebRequest, XmlElement)
Sends an artifact resolve request and receives an artifact response over SOAP.
Declaration
public static XmlElement SendRequestReceiveResponse(WebRequest webRequest, XmlElement artifactResolve)
Parameters
Type | Name | Description |
---|---|---|
System.Net.WebRequest | webRequest | The |
System.Xml.XmlElement | artifactResolve | The artifact resolve request. |
Returns
Type | Description |
---|---|
System.Xml.XmlElement | The artifact response. |
Exceptions
Type | Condition |
---|---|
SAMLProfileException | Thrown when the send/receive fails. |
SendRequestReceiveResponse(String, XmlElement)
Sends an artifact resolve request and receives an artifact response over SOAP.
Declaration
public static XmlElement SendRequestReceiveResponse(string destinationURL, XmlElement artifactResolve)
Parameters
Type | Name | Description |
---|---|---|
System.String | destinationURL | The destination URL. |
System.Xml.XmlElement | artifactResolve | The artifact resolve request. |
Returns
Type | Description |
---|---|
System.Xml.XmlElement | The artifact response. |
Exceptions
Type | Condition |
---|---|
SAMLProfileException | Thrown when the send/receive fails. |