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
artifactstringThe artifact.
artifactStatestringThe artifact state.
expirationDateTimeDateTimeThe expiration time.
Returns
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
artifactstringThe artifact.
Returns
Exceptions
- SamlEnvironmentException
Thrown if the artifact cannot be removed from the cache.