Package de.xima.fc.encryption.db
Class DBEncryptionProcessor
java.lang.Object
de.xima.fc.encryption.db.DBEncryptionProcessor
- All Implemented Interfaces:
IDBEncryptionProcessor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildBinaryEncryptor
(String encryptionPassword, EDBEncryptionAlgorithm encryptionAlgorithm, boolean active) buildStringEncryptor
(String encryptionPassword, EDBEncryptionAlgorithm encryptionAlgorithm, boolean active) checkEncryption
(DataSource datasource, IDBStringEncryptor encryptor) checkEncryption
(DataSource datasource, String encrypionPassword, EDBEncryptionAlgorithm encryptionAlforithm) void
init()
void
init
(String password, EDBEncryptionAlgorithm algorithm) boolean
void
migrate
(EDBEncryptionAlgorithm newAlgorithm, String newPassword) <T extends de.xima.cmn.dao.interfaces.ILockableEntity<Long>>
voidupdateAllEntities
(Class<T> entityClass, int pageSize, int threadCount) <E extends IFileDataEntity<?>,
T extends IFileEntity<?, E>>
voidupdateAllFiles
(Class<T> fileprovidingClass, int pageSize, int threadCount) void
updateProjectInboxTables
(int threadCount)
-
Constructor Details
-
DBEncryptionProcessor
public DBEncryptionProcessor()
-
-
Method Details
-
init
public void init()- Specified by:
init
in interfaceIDBEncryptionProcessor
-
init
-
getStringEncryptor
- Specified by:
getStringEncryptor
in interfaceIDBEncryptionProcessor
-
getBinaryEncryptor
- Specified by:
getBinaryEncryptor
in interfaceIDBEncryptionProcessor
-
getFormDataStringEncryptor
- Specified by:
getFormDataStringEncryptor
in interfaceIDBEncryptionProcessor
-
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
- Specified by:
migrate
in interfaceIDBEncryptionProcessor
-
updateProjectInboxTables
public void updateProjectInboxTables(int threadCount) -
updateAllEntities
-
updateAllFiles
public <E extends IFileDataEntity<?>,T extends IFileEntity<?, void updateAllFilesE>> (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
-
isConfigurationValid
public boolean isConfigurationValid()- Specified by:
isConfigurationValid
in interfaceIDBEncryptionProcessor
-