Class EncryptedData

java.lang.Object
com.mirth.connect.server.userutil.EncryptedData

public class EncryptedData extends Object
This object is returned from EncryptionUtil.encrypt(byte[]).
  • Constructor Details

    • EncryptedData

      public EncryptedData(String header, byte[] encryptedData)
      Instantiates a new EncryptedData object with the specified header and encrypted data.
      Parameters:
      header - The meta-information about the encrypted data, including the algorithm and initialization vector used.
      encryptedData - The encrypted data as a byte array.
  • Method Details

    • getHeader

      public String getHeader()
      Returns the meta-information about the encrypted data. Includes the algorithm and initialization vector used.
      Returns:
      The header information as a string.
    • getEncryptedData

      public byte[] getEncryptedData()
      Returns the encrypted data as a byte array.
      Returns:
      The encrypted data.