//-----------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------
namespace System.IdentityModel.Configuration
{
using System.IdentityModel.Tokens;
///
/// Defines caches supported by IdentityModel for TokenReplay and SecuritySessionTokens
///
public sealed class IdentityModelCaches
{
private TokenReplayCache tokenReplayCache = new DefaultTokenReplayCache();
private SessionSecurityTokenCache sessionSecurityTokenCache = new MruSessionSecurityTokenCache();
///
/// Gets or sets the TokenReplayCache that is used to determine replayed token.
///
public TokenReplayCache TokenReplayCache
{
get
{
return this.tokenReplayCache;
}
set
{
if (value == null)
{
throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("value");
}
this.tokenReplayCache = value;
}
}
///
/// Gets or sets the SessionSecurityTokenCache that is used to cache the
///
public SessionSecurityTokenCache SessionSecurityTokenCache
{
get
{
return this.sessionSecurityTokenCache;
}
set
{
if (value == null)
{
throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("value");
}
this.sessionSecurityTokenCache = value;
}
}
}
}