StatelessHmacNonceManager
class StatelessHmacNonceManager : NonceManager
Stateless nonce manager implementation with HMAC verification and timeout. Every nonce provided by this manager consist of a random part, timestamp and HMAC.
Constructors
StatelessHmacNonceManager( Helper constructor that makes a secret key from key ByteArray StatelessHmacNonceManager( Stateless nonce manager implementation with HMAC verification and timeout. Every nonce provided by this manager consist of a random part, timestamp and HMAC. |
Properties
val algorithm: String HMAC algorithm name, |
|
val keySpec: SecretKeySpec secret key spec for HMAC |
|
val nonceGenerator: () -> String function that produces random values |
|
val timeoutMillis: Long specifies the amount of time for a nonce to be considered valid |
Functions
suspend fun newNonce(): String Generate new nonce instance |
|
Verify nonce value |