Class PrometheusPreferenceSecurity
java.lang.Object
io.github.tonywasher.joceanus.prometheus.preference.PrometheusPreferenceSecurity
- All Implemented Interfaces:
PrometheusPreferenceEncryptor
Security for Preferences.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classPrefSecurityPreferences.static enumSecurityPreferenceKey.static classPrefSecurityPreferences. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionchar[]decryptValue(byte[] pValue) Decrypt the value.byte[]encryptValue(char[] pValue) Encrypt the value.
-
Constructor Details
-
PrometheusPreferenceSecurity
PrometheusPreferenceSecurity(MetisPreferenceManager pManager) throws OceanusException Constructor.- Parameters:
pManager- the preference manager- Throws:
OceanusException- on error
-
-
Method Details
-
encryptValue
Description copied from interface:PrometheusPreferenceEncryptorEncrypt the value.- Specified by:
encryptValuein interfacePrometheusPreferenceEncryptor- Parameters:
pValue- the value to encrypt- Returns:
- the encrypted value
- Throws:
OceanusException- on error
-
decryptValue
Description copied from interface:PrometheusPreferenceEncryptorDecrypt the value.- Specified by:
decryptValuein interfacePrometheusPreferenceEncryptor- Parameters:
pValue- the value to decrypt- Returns:
- the decrypted value
- Throws:
OceanusException- on error
-