GoldenGateBindings / com.fitbit.goldengate.bindings.dtls / InMemoryModeTlsKeyResolver

InMemoryModeTlsKeyResolver

class InMemoryModeTlsKeyResolver : TlsKeyResolver

Creates a Tls key resolver with given key id and key data, mainly for test mode

Parameters

keyId - The pre-shared key identity

key - The pre-shared key with 16-byte length

Constructors

<init>

InMemoryModeTlsKeyResolver(keyId: ByteArray, key: ByteArray)

Creates a Tls key resolver with given key id and key data, mainly for test mode

Functions

resolveKey

fun resolveKey(nodeKey: NodeKey<*>, keyId: ByteArray): ByteArray?

Resolve a key (for example a pre-shared key) given a key identity.

Inherited Functions

resolve

fun resolve(nodeKey: NodeKey<*>, keyId: ByteArray): ByteArray?

Resolve a key (for example a pre-shared key) given a key identity.