Class EncryptedEnvelope

java.lang.Object
com.amilesend.client.crypto.EncryptedEnvelope

public class EncryptedEnvelope extends Object
The envelope that encapsulates encrypted content that is used to persist to the file system.
  • Constructor Details

    • EncryptedEnvelope

      public EncryptedEnvelope(byte[] encryptedContent, byte[] iv, String description)
      Creates a new EncryptedEnvelope 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

      public String 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

      public void setDescription(String description)
      The description of the contents.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object