SessionTransportTransformer

interface SessionTransportTransformer

Represents a session cookie transformation. Useful for such things like signing and encryption

Functions

transformRead

abstract fun transformRead(transportValue: String): String?

Un-apply a transformation for transportValue representing a transformed session. Returns null if it fails.

transformWrite

abstract fun transformWrite(transportValue: String): String

Apply a transformation for transportValue representing a session.

Inheritors

SessionTransportTransformerDigest

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.

SessionTransportTransformerEncrypt

class SessionTransportTransformerEncrypt : 
    SessionTransportTransformer

Session transformer that encrypts/decrypts the input.

SessionTransportTransformerMessageAuthentication

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.