Show / Hide Table of Contents

Class HTTPArtifactType4

Represents a type 4 artifact used in the HTTP artifact binding.

Inheritance
System.Object
HTTPArtifact
HTTPArtifactType4
Inherited Members
HTTPArtifact.TypeCodeLength
HTTPArtifact.EndpointIndexLength
HTTPArtifact.ArtifactMinimumLength
HTTPArtifact.TypeCode
HTTPArtifact.EndpointIndex
HTTPArtifact.FromArray(Byte[])
HTTPArtifact.ToArray()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: ComponentSpace.SAML2.Bindings
Assembly: ComponentSpace.Saml2.dll
Syntax
public class HTTPArtifactType4 : HTTPArtifact
Remarks

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

Constructors

HTTPArtifactType4()

Initializes a new instance of the HTTPArtifactType4 class.

Declaration
public HTTPArtifactType4()

HTTPArtifactType4(Byte[], Byte[])

Initializes a new instance of the HTTPArtifactType4 class.

Declaration
public HTTPArtifactType4(byte[] sourceID, byte[] messageHandle)
Parameters
Type Name Description
System.Byte[] sourceID

The 20 byte source ID.

System.Byte[] messageHandle

The 20 byte message handle.

Exceptions
Type Condition
SAMLBindingException

Thrown when the artifact is invalid.

See Also
CreateSourceId(String)
CreateMessageHandle()

HTTPArtifactType4(Byte[], Byte[], Byte[])

Initializes a new instance of the HTTPArtifactType4 class.

Declaration
public HTTPArtifactType4(byte[] endpointIndex, byte[] sourceID, byte[] messageHandle)
Parameters
Type Name Description
System.Byte[] endpointIndex

The 2 byte endpoint index.

System.Byte[] sourceID

The 20 byte source ID.

System.Byte[] messageHandle

The 20 byte message handle.

Exceptions
Type Condition
SAMLBindingException

Thrown when the artifact is invalid.

See Also
CreateSourceId(String)
CreateMessageHandle()

HTTPArtifactType4(String)

Initializes a new instance of the HTTPArtifactType4 class.

Declaration
public HTTPArtifactType4(string artifact)
Parameters
Type Name Description
System.String artifact

The base 64 encoded artifact.

Exceptions
Type Condition
SAMLBindingException

Thrown when the artifact is invalid.

Fields

ArtifactType4Length

The type 4 artifact length.

Declaration
public const int ArtifactType4Length = 44
Field Value
Type Description
System.Int32

MessageHandleLength

The message handle length.

Declaration
public const int MessageHandleLength = 20
Field Value
Type Description
System.Int32

SourceIDLength

The source identifier length.

Declaration
public const int SourceIDLength = 20
Field Value
Type Description
System.Int32

Properties

MessageHandle

Gets or sets the 20 byte message handle.

Declaration
public byte[] MessageHandle { get; set; }
Property Value
Type Description
System.Byte[]

The 20 byte message handle.

Exceptions
Type Condition
SAMLBindingException

Thrown when the message handle is invalid.

See Also
CreateMessageHandle()

SourceID

Gets or sets the 20 byte source ID.

Declaration
public byte[] SourceID { get; set; }
Property Value
Type Description
System.Byte[]

The 20 byte source ID.

Exceptions
Type Condition
SAMLBindingException

Thrown when the source ID is invalid.

See Also
CreateSourceId(String)

Methods

CreateMessageHandle()

Creates a message handle from a random GUID.

Declaration
public static byte[] CreateMessageHandle()
Returns
Type Description
System.Byte[]

The 20 byte message handle.

CreateSourceId(String)

Creates a source identifier by computing the SHA-1 hash of the identification URL.

Declaration
public static byte[] CreateSourceId(string identificationURL)
Parameters
Type Name Description
System.String identificationURL

The identification URL.

Returns
Type Description
System.Byte[]

The source identifier.

IsValid(String)

Indicates whether the artifact is valid or not.

Declaration
public static bool IsValid(string artifact)
Parameters
Type Name Description
System.String artifact

The base 64 encoded artifact.

Returns
Type Description
System.Boolean

true if the artifact is valid; otherwise false.

ToString()

Returns the base 64 encoded artifact.

Declaration
public override string ToString()
Returns
Type Description
System.String

The base 64 encoded artifact

Overrides
System.Object.ToString()
In This Article
Back to top Copyright © ComponentSpace Pty Ltd 2004-2022. All rights reserved.