private HttpResponse snapshotEncryptionKey(SnapshotId id, String hostname, Inspector body) {
        Inspector sealingKeyField = body.field("sealingKey");
        if (!sealingKeyField.valid()) {
            throw new IllegalArgumentException("No 'sealingKey' field present in body");
        }
        PublicKey sealingKey = KeyUtils.fromBase64EncodedX25519PublicKey(sealingKeyField.asString());
        SealedSharedKey key = nodeRepository.snapshots().keyOf(id, hostname, sealingKey);
        Slime slime = new Slime();
        Cursor root = slime.setObject();
        root.setString("sealedSharedKey", key.toTokenString());
        return new SlimeJsonResponse(slime);
    }
Returns true if the peer is a tenant host or node.
node-repository/src/main/java/com/yahoo/vespa/hosted/provision/restapi/NodesV2ApiHandler.java