public interface ICipherFactory
Cipher
and get and set its settings.Modifier and Type | Method and Description |
---|---|
boolean |
cipherAttributesModified()
Gets if the cipher settings attributes have been modified.
|
javax.crypto.Cipher |
getCipher(int opmode)
Gets a new cipher instance.
|
java.lang.String |
getName()
Gets the name of the cipher factory.
|
byte[] |
getSettings()
Gets the cipher settings as a byte array.
|
int |
getSettingsLength()
Gets the length of the settings byte array.
|
byte[] |
getSettingsNoSecrets()
Gets the cipher settings as a byte array without secrets.
|
int |
getSettingsNoSecretsLength()
Gets the length of the settings byte array without secrets.
|
void |
setSettings(byte[] settingsIn)
Sets the cipher settings using a byte array.
|
javax.crypto.Cipher getCipher(int opmode) throws CipherException
opmode
- The Cipher Operation Mode (Cipher.ENCRYPT_MODE
, Cipher.DECRYPT_MODE
, Cipher.WRAP_MODE
and Cipher.UNWRAP_MODE
).CipherException
- An Exception has occurred.java.lang.String getName()
boolean cipherAttributesModified()
byte[] getSettings()
int getSettingsLength()
byte[] getSettingsNoSecrets()
int getSettingsNoSecretsLength()
void setSettings(byte[] settingsIn) throws CipherException
settingsIn
- The byte array to load the settings from.java.lang.NullPointerException
- settingsIn is null.CipherException
- An Exception has occurred.