IotHubSasTokenAuthenticationProvider.shouldRefreshToken(boolean proactivelyRenew) 方法

定义

Returns true if the saved token should be refreshed

public boolean shouldRefreshToken(boolean proactivelyRenew)

参数

proactivelyRenew
boolean

if true, this function will return true even if the saved token has not expired, but only if the token has lived beyond its time buffer percentage

返回

boolean

true if the caller should refresh the saved sas token

适用于