Class ConfigState
java.lang.Object
ai.attackframework.tools.burp.utils.config.ConfigState
Typed configuration model for import/export and UI binding.
Immutable records with defensive copying where lists are provided.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumScope kind forConfigState.ScopeEntry.static final recordTop-level state.static final recordOrdered custom-scope entry.static final recordSinks selection and values.static final recordstatic final recordPersisted UI preferences that should survive save/export/import. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDefault advanced disk-used threshold for file export.static final doubleDefault total cap across exporter files under the selected root, stored as human-friendly GB.Default findings severities: all five.static final StringDefault minimum visible level in LogPanel.Default settings sub-options (project, user).static final intDefault Stats panel chart style (1 = Smooth).Default traffic tool types: empty (no traffic exported by default).static final StringTrust all OpenSearch TLS certificates without verification.static final StringTrust only the session-imported pinned OpenSearch certificate.static final StringVerify OpenSearch TLS certificates against the system trust store. -
Method Summary
Modifier and TypeMethodDescriptionstatic doublebytesToGb(long bytes) Converts runtime bytes to the human-friendly GB value used in config state/export.Default persisted LogPanel preferences.static ConfigState.UiPreferencesDefault persisted UI preferences.static longgbToBytes(double gb) Converts a human-friendly GB value to runtime bytes using half-up rounding.normalizeDataSources(List<String> values) Normalizes config data-source ids to lowercase.static doublenormalizeFileTotalCapGb(double raw) Normalizes stored file-cap GB values and falls back to the default when unset or invalid.normalizeFindingsSeverities(List<String> values) Normalizes finding severity ids to lowercase.static StringReturns one of trace/debug/info/warn/error, defaulting to trace.static StringReturns a normalized persisted OpenSearch TLS mode, defaulting toOPEN_SEARCH_TLS_VERIFY.static StringnormalizeScopeType(String raw) Normalizes persisted scope type values to lowercase supported ids.normalizeSettingsSub(List<String> values) Normalizes settings sub-option ids to lowercase.normalizeTrafficToolTypes(List<String> values) Normalizes traffic tool ids to lowercase.
-
Field Details
-
DEFAULT_SETTINGS_SUB
Default settings sub-options (project, user). -
DEFAULT_TRAFFIC_TOOL_TYPES
Default traffic tool types: empty (no traffic exported by default). -
DEFAULT_FINDINGS_SEVERITIES
Default findings severities: all five. -
DEFAULT_FILE_TOTAL_CAP_GB
public static final double DEFAULT_FILE_TOTAL_CAP_GBDefault total cap across exporter files under the selected root, stored as human-friendly GB.- See Also:
-
DEFAULT_FILE_MAX_DISK_USED_PERCENT
public static final int DEFAULT_FILE_MAX_DISK_USED_PERCENTDefault advanced disk-used threshold for file export.- See Also:
-
DEFAULT_STATS_CHART_STYLE
public static final int DEFAULT_STATS_CHART_STYLEDefault Stats panel chart style (1 = Smooth).- See Also:
-
DEFAULT_LOG_MIN_LEVEL
Default minimum visible level in LogPanel.- See Also:
-
OPEN_SEARCH_TLS_VERIFY
Verify OpenSearch TLS certificates against the system trust store.- See Also:
-
OPEN_SEARCH_TLS_PINNED
Trust only the session-imported pinned OpenSearch certificate.- See Also:
-
OPEN_SEARCH_TLS_INSECURE
Trust all OpenSearch TLS certificates without verification.- See Also:
-
-
Method Details
-
defaultLogPanelPreferences
Default persisted LogPanel preferences. -
defaultUiPreferences
Default persisted UI preferences. -
gbToBytes
public static long gbToBytes(double gb) Converts a human-friendly GB value to runtime bytes using half-up rounding. -
bytesToGb
public static double bytesToGb(long bytes) Converts runtime bytes to the human-friendly GB value used in config state/export. -
normalizeOpenSearchTlsMode
Returns a normalized persisted OpenSearch TLS mode, defaulting toOPEN_SEARCH_TLS_VERIFY. -
normalizeLogMinLevel
Returns one of trace/debug/info/warn/error, defaulting to trace. -
normalizeFileTotalCapGb
public static double normalizeFileTotalCapGb(double raw) Normalizes stored file-cap GB values and falls back to the default when unset or invalid. -
normalizeDataSources
Normalizes config data-source ids to lowercase. -
normalizeSettingsSub
Normalizes settings sub-option ids to lowercase. -
normalizeTrafficToolTypes
Normalizes traffic tool ids to lowercase. -
normalizeFindingsSeverities
Normalizes finding severity ids to lowercase. -
normalizeScopeType
Normalizes persisted scope type values to lowercase supported ids.
-