ktor-server-core / io.ktor.sessions / SessionTransportTransformerMessageAuthentication / <init>

<init>

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

Session transformer that appends an algorithm MAC (Message Authentication Code) hash of the input. Where the input is either a session contents or a previous transformation. It uses a specified keySpec when generating the Mac hash.