Table of Contents

Interface IArtifactCache

Namespace
ComponentSpace.Saml2.Cache
Assembly
ComponentSpace.Saml2.dll

The artifact cache manages artifacts and associated state.

public interface IArtifactCache

Methods

AddAsync(string, string, DateTime)

Adds the artifact and associated SAML message to the cache.

Task AddAsync(string artifact, string artifactState, DateTime expirationDateTime)

Parameters

artifact string

The artifact.

artifactState string

The artifact state.

expirationDateTime DateTime

The expiration time.

Returns

Task

Exceptions

SamlEnvironmentException

Thrown if the artifact cannot be added to the cache.

RemoveAsync(string)

Removes the artifact from the cache.

Task<string> RemoveAsync(string artifact)

Parameters

artifact string

The artifact.

Returns

Task<string>

A task that represents the remove operation and returns the associated artifact state.

Exceptions

SamlEnvironmentException

Thrown if the artifact cannot be removed from the cache.