Edit

Share via


SecurityContextSecurityTokenResolver Constructors

Definition

Initializes a new instance of the SecurityContextSecurityTokenResolver class.

Overloads

SecurityContextSecurityTokenResolver(Int32, Boolean)

Initializes a new instance of the SecurityContextSecurityTokenResolver class.

SecurityContextSecurityTokenResolver(Int32, Boolean, TimeSpan)

Initializes a new instance of the SecurityContextSecurityTokenResolver class with the specified security context cache capacity and clock skew maximum.

SecurityContextSecurityTokenResolver(Int32, Boolean)

Initializes a new instance of the SecurityContextSecurityTokenResolver class.

public SecurityContextSecurityTokenResolver(int securityContextCacheCapacity, bool removeOldestTokensOnCacheFull);

Parameters

securityContextCacheCapacity
Int32

The size of the security context cache.

removeOldestTokensOnCacheFull
Boolean

true if the oldest tokens should be removed when the cache is full; otherwise, false.

Remarks

If removeOldestTokensOnCacheFull is false, AddContext throws a QuotaExceededException if the cache capacity has been reached.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

SecurityContextSecurityTokenResolver(Int32, Boolean, TimeSpan)

Initializes a new instance of the SecurityContextSecurityTokenResolver class with the specified security context cache capacity and clock skew maximum.

public SecurityContextSecurityTokenResolver(int securityContextCacheCapacity, bool removeOldestTokensOnCacheFull, TimeSpan clockSkew);

Parameters

securityContextCacheCapacity
Int32

The size of the security context cache.

removeOldestTokensOnCacheFull
Boolean

true if the oldest tokens should be removed when the cache is full; otherwise, false.

clockSkew
TimeSpan

The maximum allowable time difference between client and server clock settings.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1