Security Config
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 KeyVrsn alongside keyId, with the same constraints.
Link copied to clipboard
Derives the MAC key. No trailers are generated or verified while this is null.
Link copied to clipboard