Secure.from_preset()
Create a Secure instance using a predefined security preset.
Usage
Secure.from_preset(preset)Parameters
preset: Preset-
The security preset to use, for example
Preset.BALANCEDfor the recommended default profile,Preset.BASICfor compatibility- oriented behavior, orPreset.STRICTfor a hardened configuration with stronger guarantees.
Returns
Secure- Instance configured with the selected preset.
Raises
ValueError- If an unknown preset is provided.