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) voidinit()voidinit(String password, EDBEncryptionAlgorithm algorithm) booleanvoidmigrate(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) voidupdateProjectInboxTables(int threadCount)
-
Constructor Details
-
DBEncryptionProcessor
public DBEncryptionProcessor()
-
-
Method Details
-
init
public void init()- Specified by:
initin interfaceIDBEncryptionProcessor
-
init
-
getStringEncryptor
- Specified by:
getStringEncryptorin interfaceIDBEncryptionProcessor
-
getBinaryEncryptor
- Specified by:
getBinaryEncryptorin interfaceIDBEncryptionProcessor
-
getFormDataStringEncryptor
- Specified by:
getFormDataStringEncryptorin interfaceIDBEncryptionProcessor
-
getFormDataBinaryEncryptor
- Specified by:
getFormDataBinaryEncryptorin interfaceIDBEncryptionProcessor
-
buildStringEncryptor
public IDBStringEncryptor buildStringEncryptor(String encryptionPassword, EDBEncryptionAlgorithm encryptionAlgorithm, boolean active) - Specified by:
buildStringEncryptorin interfaceIDBEncryptionProcessor
-
buildBinaryEncryptor
public IDBBinaryEncryptor buildBinaryEncryptor(String encryptionPassword, EDBEncryptionAlgorithm encryptionAlgorithm, boolean active) - Specified by:
buildBinaryEncryptorin interfaceIDBEncryptionProcessor
-
migrate
- Specified by:
migratein 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:
checkEncryptionin interfaceIDBEncryptionProcessor- Throws:
SQLException
-
checkEncryption
public EEncryptionTestResult checkEncryption(DataSource datasource, IDBStringEncryptor encryptor) throws SQLException - Throws:
SQLException
-
updateEncryptionTestString
-
isConfigurationValid
public boolean isConfigurationValid()- Specified by:
isConfigurationValidin interfaceIDBEncryptionProcessor
-