TransferTokenValidator

class TransferTokenValidator(secret: ByteArray, clock: Clock = SystemClock, replayMaxEntries: Int = DEFAULT_REPLAY_MAX_ENTRIES)

Validates transfer tokens used for cross-server routing.

Constructors

Link copied to clipboard
constructor(secret: ByteArray, clock: Clock = SystemClock, replayMaxEntries: Int = DEFAULT_REPLAY_MAX_ENTRIES)

Functions

Link copied to clipboard
Link copied to clipboard
fun tryValidate(encoded: String, expectedPlayerId: String): TransferToken?

Attempts to validate an encoded token for expectedPlayerId.