<cacheLimit> Element
Sets the limit on the number of security tokens that are cached.
<microsoft.web.services2> Element
<security> Element
<securityTokenManager> Element
<cacheLimit>Number of security tokens to cache. Default:2048</cacheLimit>
Attributes and Elements
Attributes
None
Child Elements
None
Parent Elements
Element | Description |
---|---|
Specifies a user supplied custom security token manager for an XML-based security token. |
Text Value
A text value is required. The text value is the limit on the number of security tokens that are cached. The default value is 2048.
Remarks
Use the <cacheLimit> element to specify the maximum number of security tokens a security token manager should cache.
Before adding the <cacheLimit> element to a configuration file, you must add the microsoft.web.services2 configuration section handler to the configuration file. For details about adding the microsoft.web.services2 configuration section handler, see <section> Element (WSE for Microsoft .NET).
Example
The following example sets the maximum number of cached SecurityContextToken security tokens to 30.
<configuration>
<microsoft.web.services2>
<securityTokenManager
type="Microsoft.Web.Services2.Security.Tokens.SecurityContextTokenManager, Microsoft.Web.Services2, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
xmlns:wssc="https://schemas.xmlsoap.org/ws/2004/04/sc"
qname="wssc:SecurityContextToken" >
<cacheLimit>30</cacheLimit>
</securityTokenManager>
</microsoft.web.services2>
</configuration>
See Also
Tasks
How to: Create a Security Token Manager for a Custom Security Token