diff options
author | Tor Brede Vekterli <vekterli@yahooinc.com> | 2022-11-02 17:23:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-02 17:23:17 +0100 |
commit | 1cb8d7ef5a5c1d74b754c996aa93d7924c26f6c8 (patch) | |
tree | 8805cb8339af23dcece586ba62b5171609a558f6 /node-admin | |
parent | 956c5fdb5efdff62f7f8ec8bbfcd1af2aa0f9007 (diff) | |
parent | b604729fdf16cac2109055c2b1b19d7514afb220 (diff) |
Merge pull request #24715 from vespa-engine/vekterli/encapsulate-key-id
Encapsulate key identifier in own object
Diffstat (limited to 'node-admin')
-rw-r--r-- | node-admin/src/test/java/com/yahoo/vespa/hosted/node/admin/maintenance/coredump/CoredumpHandlerTest.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/node-admin/src/test/java/com/yahoo/vespa/hosted/node/admin/maintenance/coredump/CoredumpHandlerTest.java b/node-admin/src/test/java/com/yahoo/vespa/hosted/node/admin/maintenance/coredump/CoredumpHandlerTest.java index b748c067fe2..235007d7499 100644 --- a/node-admin/src/test/java/com/yahoo/vespa/hosted/node/admin/maintenance/coredump/CoredumpHandlerTest.java +++ b/node-admin/src/test/java/com/yahoo/vespa/hosted/node/admin/maintenance/coredump/CoredumpHandlerTest.java @@ -1,6 +1,7 @@ // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.vespa.hosted.node.admin.maintenance.coredump; +import com.yahoo.security.KeyId; import com.yahoo.security.SealedSharedKey; import com.yahoo.security.SecretSharedKey; import com.yahoo.test.ManualClock; @@ -303,7 +304,7 @@ public class CoredumpHandlerTest { private static SecretSharedKey makeFixedSecretSharedKey() { byte[] keyBytes = bytesOf("very secret yes!"); // 128 bits var secretKey = new SecretKeySpec(keyBytes, "AES"); - byte[] keyId = bytesOf("the shiniest key"); + var keyId = KeyId.ofString("the shiniest key"); // We don't parse any of these fields in the test, so just use dummy contents. byte[] enc = bytesOf("hello world"); byte[] ciphertext = bytesOf("imaginary ciphertext"); |