A transformer used to sign session data. This transformer appends an algorithm MAC (Message Authentication Code) hash of the session data. It uses a specified keySpec when generating the MAC hash.

See also


fun SessionTransportTransformerMessageAuthentication(key: ByteArray, algorithm: String = "HmacSHA256")
fun SessionTransportTransformerMessageAuthentication(keySpec: SecretKeySpec, algorithm: String = "HmacSHA256")


Link copied to clipboard
open override fun transformRead(transportValue: String): String?

Untransforms a transportValue that represents a transformed session.

Link copied to clipboard
open override fun transformWrite(transportValue: String): String

Transforms a transportValue that represents session data.


Link copied to clipboard
val algorithm: String

is a message authentication algorithm name

Link copied to clipboard
val keySpec: SecretKeySpec

is a secret key spec for message authentication