Package-level declarations

Types

Link copied to clipboard
data class ReplayKey(val backendId: String, val playerId: String, val nonce: String)
Link copied to clipboard
class ReplayProtector(windowMillis: Long, maxEntries: Int, clock: Clock = SystemClock)

Time-window replay protection with best-effort cleanup.

Link copied to clipboard
class TokenValidator(secrets: List<ByteArray>, clock: Clock = SystemClock)

Validates proxy tokens received by the backend server, supporting secret rotation.

Link copied to clipboard
data class ValidatedProxyToken(val token: ProxyToken, val replayKey: ReplayKey)