Package com.amilesend.client.crypto
Class EncryptedEnvelope
java.lang.Object
com.amilesend.client.crypto.EncryptedEnvelope
The envelope that encapsulates encrypted content that is used to persist to the file system.
-
Constructor Summary
ConstructorsConstructorDescriptionEncryptedEnvelope
(byte[] encryptedContent, byte[] iv, String description) Creates a newEncryptedEnvelope
instance. -
Method Summary
Modifier and TypeMethodDescriptionboolean
The description of the contents.byte[]
The encrypted bytes.byte[]
getIv()
The associated initialization vector.int
hashCode()
void
setDescription
(String description) The description of the contents.void
setEncryptedContent
(byte[] encryptedContent) The encrypted bytes.void
setIv
(byte[] iv) The associated initialization vector.toString()
-
Constructor Details
-
EncryptedEnvelope
Creates a newEncryptedEnvelope
instance.- Parameters:
encryptedContent
- The encrypted bytes.iv
- The associated initialization vector.description
- The description of the contents.
-
-
Method Details
-
getEncryptedContent
public byte[] getEncryptedContent()The encrypted bytes. -
getIv
public byte[] getIv()The associated initialization vector. -
getDescription
The description of the contents. -
setEncryptedContent
public void setEncryptedContent(byte[] encryptedContent) The encrypted bytes. -
setIv
public void setIv(byte[] iv) The associated initialization vector. -
setDescription
The description of the contents. -
equals
-
hashCode
public int hashCode() -
toString
-