Security tokens have several properties that provide information about their lifetime:
In the case of SecurityContextTokens and KerberosTokens in WSE 2.0, the RequiresRenewal property is overridden from its default and uses a renewal window value to return true from this property when the token is still current but about to expire.
The policy engine in WSE 2.0 uses this property to determine when to automatically request a new SecurityContextToken or to create a new KerberosToken to avoid messages failing at the receiver. If you use either of these tokens directly in code without policy and you application is long-running, you should use this property to determine when to renew the token.
Posted by herveyw at May 7, 2004 11:45 PM