Package de.xima.fc.encryption.db
Class DBEncryptionProcessor
- java.lang.Object
-
- de.xima.fc.encryption.db.DBEncryptionProcessor
-
- All Implemented Interfaces:
IDBEncryptionProcessor
public class DBEncryptionProcessor extends Object implements IDBEncryptionProcessor
-
-
Constructor Summary
Constructors Constructor Description DBEncryptionProcessor()
-
Method Summary
-
-
-
Method Detail
-
init
public void init()
- Specified by:
init
in interfaceIDBEncryptionProcessor
-
init
public void init(String password, EDBEncryptionAlgorithm algorithm)
-
getStringEncryptor
public IDBStringEncryptor getStringEncryptor()
- Specified by:
getStringEncryptor
in interfaceIDBEncryptionProcessor
-
getBinaryEncryptor
public IDBBinaryEncryptor getBinaryEncryptor()
- Specified by:
getBinaryEncryptor
in interfaceIDBEncryptionProcessor
-
getFormDataStringEncryptor
public IDBStringEncryptor getFormDataStringEncryptor()
- Specified by:
getFormDataStringEncryptor
in interfaceIDBEncryptionProcessor
-
getFormDataBinaryEncryptor
public IDBBinaryEncryptor getFormDataBinaryEncryptor()
- Specified by:
getFormDataBinaryEncryptor
in interfaceIDBEncryptionProcessor
-
buildStringEncryptor
public IDBStringEncryptor buildStringEncryptor(String encryptionPassword, EDBEncryptionAlgorithm encryptionAlgorithm, boolean active)
- Specified by:
buildStringEncryptor
in interfaceIDBEncryptionProcessor
-
buildBinaryEncryptor
public IDBBinaryEncryptor buildBinaryEncryptor(String encryptionPassword, EDBEncryptionAlgorithm encryptionAlgorithm, boolean active)
- Specified by:
buildBinaryEncryptor
in interfaceIDBEncryptionProcessor
-
migrate
public void migrate(EDBEncryptionAlgorithm newAlgorithm, String newPassword)
- Specified by:
migrate
in interfaceIDBEncryptionProcessor
-
updateProjectInboxTables
public void updateProjectInboxTables(int threadCount)
-
updateAllEntities
public <T extends de.xima.cmn.dao.interfaces.ILockableEntity<Long>> void updateAllEntities(Class<T> entityClass, int pageSize, int threadCount)
-
updateAllFiles
public <E extends IFileDataEntity<?>,T extends IFileEntity<?,E>> void updateAllFiles(Class<T> fileprovidingClass, int pageSize, int threadCount)
-
checkEncryption
public EEncryptionTestResult checkEncryption(DataSource datasource, String encrypionPassword, EDBEncryptionAlgorithm encryptionAlforithm) throws SQLException
- Specified by:
checkEncryption
in interfaceIDBEncryptionProcessor
- Throws:
SQLException
-
checkEncryption
public EEncryptionTestResult checkEncryption(DataSource datasource, IDBStringEncryptor encryptor) throws SQLException
- Throws:
SQLException
-
updateEncryptionTestString
public SystemProperty updateEncryptionTestString()
-
isConfigurationValid
public boolean isConfigurationValid()
- Specified by:
isConfigurationValid
in interfaceIDBEncryptionProcessor
-
-