Package de.xima.fc.security.encryption
Class DBEncryptionProvider
- java.lang.Object
-
- de.xima.fc.security.encryption.DBEncryptionProvider
-
@Deprecated public final class DBEncryptionProvider extends Object
Deprecated.Encryption and encryption migration is handled by the persistence module.
-
-
Field Summary
Fields Modifier and Type Field Description static IDBEncryptionProcessorPROCCESSORDeprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static EEncryptionTestResultcheckEncryption(DataSource datasource, String encryptionPassword, EDBEncryptionAlgorithm encryptionAlgorithm)Deprecated.static EFcEncryptionScopegetEncryptionScope(javax.persistence.EntityManagerFactory factory, javax.persistence.metamodel.EntityType<?> entityType, javax.persistence.metamodel.Attribute<?,?> attribute)Deprecated.Checks if the given attribute is an encrypted type, such as FCEncryptedStringType or FormDataEncryptedBinaryType.static EFcEncryptionScopegetEncryptionScope(javax.persistence.EntityManagerFactory factory, org.hibernate.type.Type type)Deprecated.Checks if the given type is an encrypted type, such as FCEncryptedStringType or FormDataEncryptedBinaryType.static voidinitialize(IDBEncryptionProcessor processor)Deprecated.static booleanisConfigurationValid()Deprecated.static booleanisEncryptedAttribute(javax.persistence.EntityManagerFactory factory, javax.persistence.metamodel.EntityType<?> entityType, javax.persistence.metamodel.Attribute<?,?> attribute)Deprecated.Checks if the given attribute is an encrypted attribute, such as FCEncryptedStringType or FormDataEncryptedBinaryType.static booleanisEncryptedType(javax.persistence.EntityManagerFactory factory, org.hibernate.type.Type type)Deprecated.static booleanisMigrationRunning()Deprecated.static voidmigrate(EDBEncryptionAlgorithm newAlgorithm, String newPassword)Deprecated.
-
-
-
Field Detail
-
PROCCESSOR
public static IDBEncryptionProcessor PROCCESSOR
Deprecated.
-
-
Method Detail
-
initialize
public static void initialize(IDBEncryptionProcessor processor)
Deprecated.
-
migrate
public static void migrate(EDBEncryptionAlgorithm newAlgorithm, String newPassword)
Deprecated.
-
checkEncryption
public static EEncryptionTestResult checkEncryption(DataSource datasource, String encryptionPassword, EDBEncryptionAlgorithm encryptionAlgorithm) throws SQLException
Deprecated.- Throws:
SQLException
-
isConfigurationValid
public static boolean isConfigurationValid()
Deprecated.
-
isMigrationRunning
public static boolean isMigrationRunning()
Deprecated.
-
getEncryptionScope
public static EFcEncryptionScope getEncryptionScope(javax.persistence.EntityManagerFactory factory, org.hibernate.type.Type type)
Deprecated.Checks if the given type is an encrypted type, such as FCEncryptedStringType or FormDataEncryptedBinaryType. If it is, returns theencryption scopeof that type.- Parameters:
factory- The Hibernate session factory.type- The type to check.- Returns:
- The encryption scope of the given type, or
nullif the type is not an encrypted type.
-
getEncryptionScope
public static EFcEncryptionScope getEncryptionScope(javax.persistence.EntityManagerFactory factory, javax.persistence.metamodel.EntityType<?> entityType, javax.persistence.metamodel.Attribute<?,?> attribute)
Deprecated.Checks if the given attribute is an encrypted type, such as FCEncryptedStringType or FormDataEncryptedBinaryType. If it is, returns theencryption scopeof that type.- Parameters:
factory- The Hibernate session factory.entityType- The entity type owning the attribute.attribute- The attribute to check.- Returns:
- The encryption scope of the given type, or
nullif the type is not an encrypted type.
-
isEncryptedAttribute
public static boolean isEncryptedAttribute(javax.persistence.EntityManagerFactory factory, javax.persistence.metamodel.EntityType<?> entityType, javax.persistence.metamodel.Attribute<?,?> attribute)Deprecated.Checks if the given attribute is an encrypted attribute, such as FCEncryptedStringType or FormDataEncryptedBinaryType.- Parameters:
factory- The Hibernate session factory.entityType- The entity type owning the attribute.attribute- The attribute to check.- Returns:
trueif the given attribute is an encrypted attribute,falseotherwise.
-
isEncryptedType
@Deprecated public static boolean isEncryptedType(javax.persistence.EntityManagerFactory factory, org.hibernate.type.Type type)
Deprecated.Checks if the given type is an encrypted type, such as FCEncryptedStringType or FormDataEncryptedBinaryType.- Parameters:
factory- The Hibernate session factory.type- The type to check.- Returns:
trueif the given type is an encrypted type,falseotherwise.
-
-