|
@@ -32,6 +32,7 @@ public class VaultSettings {
|
|
|
|
|
|
public static final boolean DEFAULT_UNLOCK_AFTER_STARTUP = false;
|
|
|
public static final boolean DEFAULT_REVEAL_AFTER_MOUNT = true;
|
|
|
+ public static final boolean DEFAULT_DISABLE_ALL_KEYRINGS = false;
|
|
|
public static final boolean DEFAULT_USES_INDIVIDUAL_MOUNTPATH = false;
|
|
|
public static final boolean DEFAULT_USES_READONLY_MODE = false;
|
|
|
public static final String DEFAULT_MOUNT_FLAGS = "";
|
|
@@ -48,6 +49,7 @@ public class VaultSettings {
|
|
|
private final StringProperty winDriveLetter = new SimpleStringProperty();
|
|
|
private final BooleanProperty unlockAfterStartup = new SimpleBooleanProperty(DEFAULT_UNLOCK_AFTER_STARTUP);
|
|
|
private final BooleanProperty revealAfterMount = new SimpleBooleanProperty(DEFAULT_REVEAL_AFTER_MOUNT);
|
|
|
+ private final BooleanProperty disableAllKeyrings = new SimpleBooleanProperty(DEFAULT_DISABLE_ALL_KEYRINGS);
|
|
|
private final BooleanProperty useCustomMountPath = new SimpleBooleanProperty(DEFAULT_USES_INDIVIDUAL_MOUNTPATH);
|
|
|
private final StringProperty customMountPath = new SimpleStringProperty();
|
|
|
private final BooleanProperty usesReadOnlyMode = new SimpleBooleanProperty(DEFAULT_USES_READONLY_MODE);
|
|
@@ -64,7 +66,7 @@ public class VaultSettings {
|
|
|
}
|
|
|
|
|
|
Observable[] observables() {
|
|
|
- return new Observable[]{path, displayName, winDriveLetter, unlockAfterStartup, revealAfterMount, useCustomMountPath, customMountPath, usesReadOnlyMode, mountFlags, maxCleartextFilenameLength, actionAfterUnlock, autoLockWhenIdle, autoLockIdleSeconds};
|
|
|
+ return new Observable[]{path, displayName, winDriveLetter, unlockAfterStartup, revealAfterMount, disableAllKeyrings, useCustomMountPath, customMountPath, usesReadOnlyMode, mountFlags, maxCleartextFilenameLength, actionAfterUnlock, autoLockWhenIdle, autoLockIdleSeconds};
|
|
|
}
|
|
|
|
|
|
public static VaultSettings withRandomId() {
|
|
@@ -129,6 +131,8 @@ public class VaultSettings {
|
|
|
return revealAfterMount;
|
|
|
}
|
|
|
|
|
|
+ public BooleanProperty disableAllKeyrings() {return disableAllKeyrings; }
|
|
|
+
|
|
|
public BooleanProperty useCustomMountPath() {
|
|
|
return useCustomMountPath;
|
|
|
}
|