Class PrometheusPreferenceSecurity
java.lang.Object
io.github.tonywasher.joceanus.prometheus.preference.PrometheusPreferenceSecurity
Security for Preferences.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classPrefSecurityPreferences.static enumSecurityPreferenceKey.static classPrefSecurityPreferences. -
Constructor Summary
ConstructorsConstructorDescriptionConstructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected char[]decryptValue(byte[] pValue) Decrypt the value.protected byte[]encryptValue(char[] pValue) Encrypt the value.
-
Constructor Details
-
PrometheusPreferenceSecurity
PrometheusPreferenceSecurity(PrometheusPreferenceManager pManager) throws OceanusException Constructor.- Parameters:
pManager- the preference manager- Throws:
OceanusException- on error
-
-
Method Details
-
encryptValue
Encrypt the value.- Parameters:
pValue- the value to encrypt- Returns:
- the encrypted value
- Throws:
OceanusException- on error
-
decryptValue
Decrypt the value.- Parameters:
pValue- the value to decrypt- Returns:
- the decrypted value
- Throws:
OceanusException- on error
-