Class EncryptResult

java.lang.Object
ch.threema.apitool.results.EncryptResult

public class EncryptResult extends Object
Result of a data encryption
  • Constructor Details

    • EncryptResult

      public EncryptResult(byte[] result, byte[] secret, byte[] nonce)
  • Method Details

    • getResult

      public byte[] getResult()
      Returns:
      the encrypted data
    • getSize

      public int getSize()
      Returns:
      the size (in bytes) of the encrypted data
    • getNonce

      public byte[] getNonce()
      Returns:
      the nonce that was used for encryption
    • getSecret

      public byte[] getSecret()
      Returns:
      the secret that was used for encryption (only for symmetric encryption, e.g. files)