編輯

共用方式為


IssuedTokenClientCredential.IssuedTokenRenewalThresholdPercentage Property

Definition

Gets or sets the renewal threshold percentage for issued tokens.

public:
 property int IssuedTokenRenewalThresholdPercentage { int get(); void set(int value); };
public int IssuedTokenRenewalThresholdPercentage { get; set; }
member this.IssuedTokenRenewalThresholdPercentage : int with get, set
Public Property IssuedTokenRenewalThresholdPercentage As Integer

Property Value

The renewal threshold percentage for issued tokens. The default value is 60.

Exceptions

An attempt was made to set a read-only credential.

Examples

This code shows how to set this property.

itcc.IssuedTokenRenewalThresholdPercentage = 80;
itcc.IssuedTokenRenewalThresholdPercentage = 80

Remarks

The client caches issued tokens and when a cached issued token is going to expire in the near future, the client automatically gets a fresh issued token from the Security Token Service. The value of this property determines what percentage of the cached issued token's validity period must be over before getting a fresh issued token.

For example, if this property's value is 60, and the client gets an issued token that is valid for 100 minutes, it reuses the cached issued token for 60 minutes, after which it gets a fresh issued token from the Security Token Service.

Applies to