SessionTransportTransformerMessageAuthentication
class SessionTransportTransformerMessageAuthentication(keySpec: SecretKeySpec, algorithm: String) : SessionTransportTransformer
Content copied to clipboard
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.
Constructors
Link copied to clipboard
fun SessionTransportTransformerMessageAuthentication(key: ByteArray, algorithm: String = "HmacSHA256")
Content copied to clipboard
Link copied to clipboard
fun SessionTransportTransformerMessageAuthentication(keySpec: SecretKeySpec, algorithm: String = "HmacSHA256")
Content copied to clipboard
Functions
Link copied to clipboard
Un-apply a transformation for transportValue representing a transformed session. Returns null if it fails.
Link copied to clipboard
Apply a transformation for transportValue representing a session.