class SessionTransportTransformerDigest : SessionTransportTransformer
Session transformer that appends an algorithm hash of the input. Where the input is either a session contents or a previous transformation. It prepends a salt when computing the hash.
SessionTransportTransformerDigest(salt: String = "ktor", algorithm: String = "SHA-384")
Session transformer that appends an algorithm hash of the input. Where the input is either a session contents or a previous transformation. It prepends a salt when computing the hash. |
val algorithm: String
is a message digest algorithm |
|
val salt: String
that is used for message digest algorithm |
fun transformRead(transportValue: String): String?
Un-apply a transformation for transportValue representing a transformed session. Returns null if it fails. |
|
fun transformWrite(transportValue: String): String
Apply a transformation for transportValue representing a session. |