SecurityConfig

data class SecurityConfig @JvmOverloads constructor(val passphrase: String? = null, val keyId: String = "SpecV1TestKey", val keyVersion: String = "1", val trailerPolicy: SecurityTrailerPolicy = SecurityTrailerPolicy.VERIFY_AND_GENERATE)

Security trailer settings for messages exchanged with the Toro gateway.

passphrase, keyId and keyVersion together describe one gateway key: the gateway selects the key by keyId and keyVersion, so change all three together when the key is rotated.

Constructors

Link copied to clipboard
constructor(passphrase: String? = null, keyId: String = "SpecV1TestKey", keyVersion: String = "1", trailerPolicy: SecurityTrailerPolicy = SecurityTrailerPolicy.VERIFY_AND_GENERATE)

Properties

Link copied to clipboard

Sent as KeyId in request trailers, and required in response trailers. Must be 1 to 140 characters, without leading or trailing whitespace.

Link copied to clipboard

Sent as KeyVrsn alongside keyId, with the same constraints.

Link copied to clipboard
val passphrase: String? = null

Derives the MAC key. No trailers are generated or verified while this is null.

Link copied to clipboard

Functions

Link copied to clipboard
open override fun toString(): String