Package com.isode.dsapi.profile
Class MLCEncrypter
java.lang.Object
com.isode.dsapi.profile.MLCEncrypter
- All Implemented Interfaces:
BindProfileList.ISettingsEncrypter
This class should be used when loading bind profiles for MLC, so that
data in the bind profile which is sensitive is properly encrypted/decrypted
using the bind profile passphrase.
- Since:
- 16.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The setting key "mlcClientIdentityPassphrase" contains sensitive data that will be encrypted. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattributeReadFromFile
(String key, String value) An attribute key/value pair has been read from the BindProfile file, and we are given the opportunity to see if it needs decryption.attributeToBeWritten
(String key, String value) An attribute key/value pair is about to be written to the BindProfile file, and we are given the opportunity to see if it needs encryption.multiSettingReadFromFile
(String multiSettingKey, String value) A "multisetting" has been read from the BindProfile file, and we are being the opportunity to see if the value requires any decryptionmultiSettingToBeWritten
(String multiSettingKey, String value) A "multisetting" has been read from the BindProfile file, and we are being the opportunity to see if the value requires any decryptionsettingReadFromFile
(String settingKey, String value) A "setting" has been read from the BindProfile file, and we are being the opportunity to see if the value requires any decryptionsettingToBeWritten
(String settingKey, String value) A "setting" is going to be written to the BindProfile file, and we are being the opportunity to see if the value requires any encryption
-
Field Details
-
CLIENT_ID_PASSPHRASE
The setting key "mlcClientIdentityPassphrase" contains sensitive data that will be encrypted.- See Also:
-
-
Constructor Details
-
MLCEncrypter
public MLCEncrypter()
-
-
Method Details
-
settingReadFromFile
A "setting" has been read from the BindProfile file, and we are being the opportunity to see if the value requires any decryption- Specified by:
settingReadFromFile
in interfaceBindProfileList.ISettingsEncrypter
- Parameters:
settingKey
- the name of the key, will not be nullvalue
- the value, will not be null.- Returns:
- a list of StringSections that need decrypting. This may be null, or an empty list, in which case no decryption will be performed
-
multiSettingReadFromFile
public List<BindProfileList.StringSection> multiSettingReadFromFile(String multiSettingKey, String value) A "multisetting" has been read from the BindProfile file, and we are being the opportunity to see if the value requires any decryption- Specified by:
multiSettingReadFromFile
in interfaceBindProfileList.ISettingsEncrypter
- Parameters:
multiSettingKey
- the name of the key, will not be null.value
- the value, will not be null.- Returns:
- a list of StringSections that need decrypting. This may be null, or an empty list, in which case no decryption will be performed
-
settingToBeWritten
A "setting" is going to be written to the BindProfile file, and we are being the opportunity to see if the value requires any encryption- Specified by:
settingToBeWritten
in interfaceBindProfileList.ISettingsEncrypter
- Parameters:
settingKey
- the name of the key, will not be nullvalue
- the value, will not be null.- Returns:
- a list of StringSections that need encrypting. This may be null, or an empty list, in which case no encryption will be performed
-
multiSettingToBeWritten
public List<BindProfileList.StringSection> multiSettingToBeWritten(String multiSettingKey, String value) A "multisetting" has been read from the BindProfile file, and we are being the opportunity to see if the value requires any decryption- Specified by:
multiSettingToBeWritten
in interfaceBindProfileList.ISettingsEncrypter
- Parameters:
multiSettingKey
- the name of the key, will not be nullvalue
- the value, will not be null.- Returns:
- a list of StringSections that need encrypting. This may be null, or an empty list, in which case no encryption will be performed
-
attributeReadFromFile
An attribute key/value pair has been read from the BindProfile file, and we are given the opportunity to see if it needs decryption.- Specified by:
attributeReadFromFile
in interfaceBindProfileList.ISettingsEncrypter
- Parameters:
key
- the name of the key which will not be nullvalue
- the value which will not be null- Returns:
- a list of StringSections that need decrypting. This may be null, or an empty list, in which case no decryption will be performed
-
attributeToBeWritten
An attribute key/value pair is about to be written to the BindProfile file, and we are given the opportunity to see if it needs encryption.- Specified by:
attributeToBeWritten
in interfaceBindProfileList.ISettingsEncrypter
- Parameters:
key
- the name of the key, will not be nullvalue
- the value, will not be null.- Returns:
- a list of StringSections that need encrypting. This may be null, or an empty list, in which case no encryption will be performed
-