public final class EncryptedData
extends java.lang.Object
An instance of EncryptedData is a holder for an initialization vector and encrypted bytes. It is typically used to hold encrypted private key bytes.
The initialisation vector is random data that is used to initialise the AES block cipher when the private key bytes were encrypted. You need these for decryption.
Modifier and Type | Field and Description |
---|---|
byte[] |
encryptedBytes |
byte[] |
initialisationVector |
Constructor and Description |
---|
EncryptedData(byte[] initialisationVector,
byte[] encryptedBytes) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
java.lang.String |
toString() |