StatelessHmacNonceManager
Stateless nonce manager implementation with HMAC verification and timeout. Every nonce provided by this manager consists of a random part, timestamp, and HMAC.
Constructors
Link copied to clipboard
constructor(keySpec: SecretKeySpec, algorithm: String = "HmacSHA256", timeoutMillis: Long = 6000, nonceGenerator: suspend () -> String = { generateNonceSuspend() })
constructor(key: ByteArray, algorithm: String = "HmacSHA256", timeoutMillis: Long = 60000, nonceGenerator: suspend () -> String = { generateNonceSuspend() })
Helper constructor that makes a secret key from key ByteArray