setEncryptionCounters

fun setEncryptionCounters(decryptedCounter: Int, encryptedCounter: Int)

Configure the encryption and decryption counters.

This is useful if the verifier cannot persist the SessionEncryption object, for example if used in a Servlet setup.

The default value for these counters for a fresh SessionEncryption object are both 1.

Parameters

decryptedCounter

the value to use for the decryption counter.

encryptedCounter

the value to use for the decryption counter.