Class SAMLAssertionSerializer
Permits the serialization and deserialization of SAML assertions.
Inherited Members
Namespace: ComponentSpace.SAML2.Assertions
Assembly: ComponentSpace.Saml2.dll
Syntax
public static class SAMLAssertionSerializer
Methods
Deserialize(Stream)
Deserialize the SAML assertion from the stream.
Declaration
public static SAMLAssertion Deserialize(Stream stream)
Parameters
| Type | Name | Description |
|---|---|---|
| Stream | stream | The stream. |
Returns
| Type | Description |
|---|---|
| SAMLAssertion | The SAML assertion. |
Exceptions
| Type | Condition |
|---|---|
| SAMLSerializationException | Thrown when the XML deserialization fails. |
Serialize(SAMLAssertion, Stream)
Serialize the SAML assertion to the stream.
Declaration
public static void Serialize(SAMLAssertion samlAssertion, Stream stream)
Parameters
| Type | Name | Description |
|---|---|---|
| SAMLAssertion | samlAssertion | The SAML assertion. |
| Stream | stream | The stream. |