java.lang.Object
io.ebean.config.EncryptDeploy
Define the encryption options for a bean property.
You can define the encryption options for a Bean property via the Encrypt
annotation and programmatically via EncryptDeployManager
.
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final EncryptDeploy
Use to define that the Encrypt annotation should be used to control encryption.static final EncryptDeploy
Use to define that Java client Encryption should be used (rather than DB encryption).static final EncryptDeploy
Use to define that Encryption should be used and String types should use DB encryption.static final EncryptDeploy
Use to define that no encryption should be used. -
Constructor Summary
ConstructorDescriptionEncryptDeploy
(EncryptDeploy.Mode mode, boolean dbEncrypt, int dbLength) Construct with all options for Encryption including the dbLength. -
Method Summary
Modifier and TypeMethodDescriptionint
Return a hint to specify the DB length.getMode()
Return the encryption mode.boolean
Return true if String type should use DB encryption.
-
Field Details
-
NO_ENCRYPT
Use to define that no encryption should be used. -
ANNOTATION
Use to define that the Encrypt annotation should be used to control encryption. -
ENCRYPT_DB
Use to define that Encryption should be used and String types should use DB encryption. -
ENCRYPT_CLIENT
Use to define that Java client Encryption should be used (rather than DB encryption).
-
-
Constructor Details
-
EncryptDeploy
Construct with all options for Encryption including the dbLength.- Parameters:
mode
- the Encryption modedbEncrypt
- set to false if you want to use Java client side encryption rather than DB encryption.dbLength
- set the DB length to use.
-
-
Method Details
-
getMode
Return the encryption mode. -
isDbEncrypt
public boolean isDbEncrypt()Return true if String type should use DB encryption.Return false if String type should use java client encryption instead.
-
getDbLength
public int getDbLength()Return a hint to specify the DB length.Returning 0 means just use the normal DB length determination.
-