class InMemoryModeTlsKeyResolver : TlsKeyResolver
Creates a Tls key resolver with given key id and key data, mainly for test mode
keyId
- The pre-shared key identity
key
- The pre-shared key with 16-byte length
InMemoryModeTlsKeyResolver(keyId: ByteArray, key: ByteArray)
Creates a Tls key resolver with given key id and key data, mainly for test mode |
fun resolveKey(nodeKey: NodeKey<*>, keyId: ByteArray): ByteArray?
Resolve a key (for example a pre-shared key) given a key identity. |
fun resolve(nodeKey: NodeKey<*>, keyId: ByteArray): ByteArray?
Resolve a key (for example a pre-shared key) given a key identity. |