JCECipherFactorypublic interface CipherFactory
| Modifier and Type | Field | Description |
|---|---|---|
static int |
DECRYPT |
|
static int |
ENCRYPT |
Get a CipherProvider that either Encrypts or Decrypts.
|
static int |
MIN_BOOTPASS_LENGTH |
Minimum bootPassword length
|
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
changeBootPassword(java.lang.String changeString,
java.util.Properties properties,
CipherProvider verify) |
|
CipherProvider |
createNewCipher(int mode) |
Returns a CipherProvider which is the encryption or decryption engine.
|
java.security.SecureRandom |
getSecureRandom() |
|
void |
saveProperties(java.util.Properties properties) |
|
void |
verifyKey(boolean create,
StorageFactory storageFactory,
java.util.Properties properties) |
Verify the external encryption key.
|
static final int MIN_BOOTPASS_LENGTH
static final int ENCRYPT
static final int DECRYPT
java.security.SecureRandom getSecureRandom()
CipherProvider createNewCipher(int mode) throws StandardException
mode - is either ENCRYPT or DECRYPT. The CipherProvider can only
do encryption or decryption but not both.StandardException - Standard Derby Error Policyjava.lang.String changeBootPassword(java.lang.String changeString,
java.util.Properties properties,
CipherProvider verify)
throws StandardException
StandardExceptionvoid verifyKey(boolean create,
StorageFactory storageFactory,
java.util.Properties properties)
throws StandardException
create - true means database is being created, whereas false
implies that the database has already been createdstorageFactory - storageFactory is used to access any stored data
that might be needed for verification process of the encryption keyproperties - properties at time of database connection as well as those in service.propertiesStandardExceptionvoid saveProperties(java.util.Properties properties)
Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.