SecurityContextParameters
constructor(masterSecret: ByteArray, senderId: ByteArray, recipientId: ByteArray, masterSalt: ByteArray = ByteArray(0), idContext: ByteArray? = null, aeadAlgorithm: AeadAlgorithm = AeadAlgorithm.AES_CCM_16_64_128, hkdfAlgorithm: HashAlgorithm = HashAlgorithm.SHA_256, includeIdContext: Boolean = false, replayWindowSize: Int = 32)(source)
Parameters
masterSecret
the Master Secret; required.
senderId
this endpoint's Sender ID; the empty string is legitimate.
recipientId
the peer's Sender ID.
masterSalt
the Master Salt; empty by default.
idContext
the ID Context, or null when none is used.
includeIdContext
whether requests carry the ID Context as 'kid context' (RFC 8613 §5.1), for servers that select contexts by it.
replayWindowSize
the anti-replay window, 32 by default (§3.2.2); at most 64.