Class ArtifactResolver
Supports the artifact resolution profile.
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 |
|---|---|---|
| HttpRequestBase | httpRequest | The HTTP request on which to receive the artifact resolve request. |
Returns
| Type | Description |
|---|---|
| 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 |
|---|---|---|
| HttpResponseBase | httpResponse | The HTTP response used to send the SAML response. |
| 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 |
|---|---|---|
| WebRequest | webRequest | The |
| XmlElement | artifactResolve | The artifact resolve request. |
Returns
| Type | Description |
|---|---|
| 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 |
|---|---|---|
| string | destinationURL | The destination URL. |
| XmlElement | artifactResolve | The artifact resolve request. |
Returns
| Type | Description |
|---|---|
| XmlElement | The artifact response. |
Exceptions
| Type | Condition |
|---|---|
| SAMLProfileException | Thrown when the send/receive fails. |