Validate ipc file creation before server start.
@@ -3,6 +3,7 @@ package com.quorum.tessera.config;
import com.quorum.tessera.config.adapters.KeyAdapter;
import com.quorum.tessera.config.adapters.KeyConfigurationAdapter;
import com.quorum.tessera.config.adapters.PathAdapter;
+import com.quorum.tessera.config.constraints.ValidPath;
import com.quorum.tessera.nacl.Key;
import javax.validation.Valid;
@@ -45,6 +46,7 @@ public class Config extends ConfigItem {
@XmlJavaTypeAdapter(KeyAdapter.class)
private final List<Key> alwaysSendTo;
+ @ValidPath(checkCanCreate = true)
@NotNull
@XmlElement(required = true, type = String.class)
@XmlJavaTypeAdapter(PathAdapter.class)
