- public interface CipherFactory
A CipherFactory can create new CipherProvider, which is a wrapper for a
javax.crypto.Cipher
This service is only available when run on JDK1.2 or beyond.
To use this service, either the SunJCE or an alternative clean room
implementation of the JCE must be installed.
To use a CipherProvider to encrypt or decrypt, it needs 3 things:
1) A CipherProvider that is initialized to ENCRYPT or DECRYPT
2) A secret Key for the encryption/decryption
3) An Initialization Vector (IvParameterSpec) that is used to create some
randomness in the encryption
See $WS/docs/funcspec/mulan/configurableEncryption.html
See http://java.sun.com/products/JDK/1.1/docs/guide/security/CryptoSpec.html
See http://java.sun.com/products/JDK/1.2/docs/guide/security/CryptoSpec.html
See http://java.sun.com/products/jdk/1.2/jce/index.html
|
Field Summary |
static int |
DECRYPT
|
static int |
ENCRYPT
Get a CipherProvider that either Encrypts or Decrypts. |
static int |
MIN_BOOTPASS_LENGTH
Minimum bootPassword length |
MIN_BOOTPASS_LENGTH
public static final int MIN_BOOTPASS_LENGTH
- Minimum bootPassword length
- See Also:
- Constant Field Values
ENCRYPT
public static final int ENCRYPT
- Get a CipherProvider that either Encrypts or Decrypts.
- See Also:
- Constant Field Values
DECRYPT
public static final int DECRYPT
- See Also:
- Constant Field Values
getSecureRandom
public java.security.SecureRandom getSecureRandom()
createNewCipher
public CipherProvider createNewCipher(int mode)
throws org.apache.derby.iapi.error.StandardException
- Returns a CipherProvider which is the encryption or decryption engine.
changeBootPassword
public java.lang.String changeBootPassword(java.lang.String changeString,
java.util.Properties properties,
CipherProvider verify)
throws org.apache.derby.iapi.error.StandardException
verifyKey
public void verifyKey(boolean create,
org.apache.derby.io.StorageFactory storageFactory,
java.util.Properties properties)
throws org.apache.derby.iapi.error.StandardException
- Verify the external encryption key