java.lang.Object
io.ebean.config.dbplatform.AbstractDbEncrypt
- All Implemented Interfaces:
DbEncrypt
Base type for DB platform specific Encryption.
DB specific classes that extend this need to set their specific encryption functions for varchar, date and timestamp. If they are left null then that is treated as though that data type can not be encrypted in the DB and will instead use java client encryption.
-
Field Summary
Modifier and TypeFieldDescriptionprotected DbEncryptFunction
The encryption function for all Date types (java.sql.Date, Joda Date types).protected DbEncryptFunction
The encryption function for all Timestamp types (java.sql.Timestamp, java.util.Date, java.util.Calendar, Joda DateTime types etc).protected DbEncryptFunction
The encryption function for all String types (VARCHAR, CLOB, LONGVARCHAR, CHAR). -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetDbEncryptFunction
(int jdbcType) Return the DB encryption function for the given JDBC type.int
Return the DB stored type for encrypted properties.boolean
Generally encrypt function binding the data before the key (except h2).
-
Field Details
-
varcharEncryptFunction
The encryption function for all String types (VARCHAR, CLOB, LONGVARCHAR, CHAR). -
dateEncryptFunction
The encryption function for all Date types (java.sql.Date, Joda Date types). -
timestampEncryptFunction
The encryption function for all Timestamp types (java.sql.Timestamp, java.util.Date, java.util.Calendar, Joda DateTime types etc).
-
-
Constructor Details
-
AbstractDbEncrypt
public AbstractDbEncrypt()
-
-
Method Details
-
getDbEncryptFunction
Return the DB encryption function for the given JDBC type.Null is returned if DB encryption of the type is not supported.
- Specified by:
getDbEncryptFunction
in interfaceDbEncrypt
-
getEncryptDbType
public int getEncryptDbType()Return the DB stored type for encrypted properties.- Specified by:
getEncryptDbType
in interfaceDbEncrypt
-
isBindEncryptDataFirst
public boolean isBindEncryptDataFirst()Generally encrypt function binding the data before the key (except h2).- Specified by:
isBindEncryptDataFirst
in interfaceDbEncrypt
-