TokenRefreshInfo

@Serializable
data class TokenRefreshInfo(val mode: String, val refreshWindowSeconds: Int, val previousTokenSecondsRemaining: Int)

令牌刷新信息,包含签名换新策略的相关信息。

Parameters

mode

刷新模式

refreshWindowSeconds

刷新窗口时间(秒)

previousTokenSecondsRemaining

旧令牌剩余有效期(秒)

Constructors

Link copied to clipboard
constructor(mode: String, refreshWindowSeconds: Int, previousTokenSecondsRemaining: Int)

Properties

Link copied to clipboard
@SerialName(value = "mode")
val mode: String
Link copied to clipboard
@SerialName(value = "previousTokenSecondsRemaining")
val previousTokenSecondsRemaining: Int
Link copied to clipboard
@SerialName(value = "refreshWindowSeconds")
val refreshWindowSeconds: Int