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
artifactbyte[]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
EndpointIndexLength
The endpoint index length in bytes
public const int EndpointIndexLength = 2
Field Value
TypeCodeLength
The type code length in bytes
public const int TypeCodeLength = 2
Field Value
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
artifactbyte[]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.