Table of Contents

Class HttpArtifact

Namespace
ComponentSpace.Saml2.Bindings.Artifact
Assembly
ComponentSpace.Saml2.dll

Represents an artifact used in the HTTP artifact binding.

public abstract class HttpArtifact
Inheritance
HttpArtifact
Derived
Inherited Members

Remarks

Refer to the Bindings for the OASIS Security Assertion Markup Language (SAML) V2.0 specification for further details.

Constructors

HttpArtifact()

Initializes a new instance of the HttpArtifact class.

public HttpArtifact()

HttpArtifact(byte[])

Initializes a new instance of the HttpArtifact class.

public HttpArtifact(byte[] artifact)

Parameters

artifact byte[]

The artifact as a byte array

Exceptions

SamlBindingException

Thrown when the artifact is invalid.

Fields

ArtifactMinimumLength

The minimum length in bytes

public const int ArtifactMinimumLength = 4

Field Value

int

EndpointIndexLength

The endpoint index length in bytes

public const int EndpointIndexLength = 2

Field Value

int

TypeCodeLength

The type code length in bytes

public const int TypeCodeLength = 2

Field Value

int

Properties

EndpointIndex

Gets or sets the 2 byte endpoint index.

public byte[] EndpointIndex { get; set; }

Property Value

byte[]

The 2 byte endpoint index.

Exceptions

SamlBindingException

Thrown when the endpoint index is invalid.

TypeCode

Gets or sets the 2 byte type code.

public byte[] TypeCode { get; set; }

Property Value

byte[]

The 2 byte type code.

Exceptions

SamlBindingException

Thrown when the type code is invalid.

Methods

FromArray(byte[])

Initializes the HttpArtifact class from a byte array.

public void FromArray(byte[] artifact)

Parameters

artifact byte[]

The artifact as a byte array

Exceptions

SamlBindingException

Thrown when the artifact is invalid.

ToArray()

Returns the artifact as a byte array.

public virtual byte[] ToArray()

Returns

byte[]

The artifact as a byte array.

ToString()

Returns the artifact as a string.

public override string ToString()

Returns

string

The artifact as a string.