Secure.from_preset()

Create a Secure instance using a predefined security preset.

Usage

Source

Secure.from_preset(preset)

Parameters

preset: Preset
The security preset to use, for example Preset.BALANCED for the recommended default profile, Preset.BASIC for compatibility- oriented behavior, or Preset.STRICT for a hardened configuration with stronger guarantees.

Returns

Secure
Instance configured with the selected preset.

Raises

ValueError
If an unknown preset is provided.