IssuedTokenClientCredential.IssuedTokenRenewalThresholdPercentage Propriedade
Definição
Obtém ou define o percentual de limite de renovação de tokens emitidos.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
Valor da propriedade
A porcentagem de limite de renovação para tokens emitidos.The renewal threshold percentage for issued tokens. O valor padrão é 60.The default value is 60.
Exceções
Foi feita uma tentativa de set uma credencial somente leitura.An attempt was made to set a read-only credential.
Exemplos
Este código mostra como definir essa propriedade.This code shows how to set this property.
itcc.IssuedTokenRenewalThresholdPercentage = 80;
itcc.IssuedTokenRenewalThresholdPercentage = 80
Comentários
O cliente armazena em cache os tokens emitidos e quando um token emitido em cache vai expirar em um futuro próximo, o cliente obtém automaticamente um novo token emitido do serviço de token de segurança.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. O valor dessa propriedade determina qual porcentagem do período de validade do token emitido em cache deve ser acima antes de obter um novo token emitido.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.
Por exemplo, se o valor da propriedade for 60 e o cliente obtiver um token emitido válido por 100 minutos, ele reutilizará o token emitido em cache por 60 minutos, após o qual ele obterá um novo token emitido do serviço de token de segurança.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.