2 // SecurityTokenCache.cs - SecurityToken Cache
5 // Sebastien Pouliot (spouliot@motus.com)
7 // (C) 2003 Motus Technologies Inc. (http://www.motus.com)
11 using System
.Collections
;
13 namespace Microsoft
.Web
.Services
.Security
{
15 public class SecurityTokenCache
: ICollection
{
18 public static SecurityTokenCache GlobalCache
{
23 public static SecurityTokenCache
Synchronized (SecurityTokenCache cache
)
30 public SecurityTokenCache () {}
33 public virtual int Count
{
38 public virtual bool IsSynchronized
{
43 public virtual SecurityToken
this [string identifier
] {
48 public virtual object SyncRoot
{
53 public event EventHandler Changed
;
57 protected virtual void Add (string identifier
, SecurityToken token
) {}
60 protected void CacheChanged () {}
63 protected virtual bool Contains (string identifier
)
69 protected virtual void Remove (string identifier
) {}
72 public virtual void Add (SecurityToken token
) {}
75 public void AddRange (ICollection collection
) {}
78 public virtual void Clear () {}
81 public virtual bool Contains (SecurityToken token
)
87 public virtual void CopyTo (Array array
, int index
) {}
90 public virtual IEnumerator
GetEnumerator ()
96 public virtual void Remove (SecurityToken token
) {}