{title:'Modded/Encoded Entries', updated:'9.0.0'}
The following method can be used to associates entry modifiers to a config:
Mods are used to modify values before being persisted. This can be used to
replace or encode sensitive information. They are denoted by a single
character that gets appended between angle brackets on the property name (e.g.
The framework comes built-in with a simple {@link oaj.config.mod.XorEncodeMod xor-encode} mod tied
to the
|
Custom encoders can be used to provide your own encoding support by implementing the {@link oaj.config.mod.Mod} class.
Unmodified values are encoded when the file is saved using the {@link oaj.config.Config#commit()} method. They can also be encoded immediately by calling {@link oaj.config.Config#applyMods()} which can typically be done during JVM startup to immediately encode any unencoded passwords in the file.