class SessionTransportTransformerMessageAuthentication : SessionTransportTransformer
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.
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. |
val algorithm: String
is a message authentication algorithm name |
|
val keySpec: SecretKeySpec
is a secret key spec for message authentication |
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. |