Class HybridEncryptionOutput

java.lang.Object
org.wso2.carbon.crypto.api.HybridEncryptionOutput

public class HybridEncryptionOutput extends Object
Class to store data related to hybrid encryption/decryption. This contains encrypted symmetric key used for encryption and ciphered data with any parameter specification related to symmetric encryption.
  • Constructor Details

    • HybridEncryptionOutput

      public HybridEncryptionOutput(byte[] cipherData, byte[] encryptedSymmetricKey)
      Constructor of Hybrid encryption output data holder.
      Parameters:
      cipherData - : Byte array of encrypted data.
      encryptedSymmetricKey - : Byte array of encrypted symmetric key.
    • HybridEncryptionOutput

      public HybridEncryptionOutput(byte[] cipherData, byte[] encryptedSymmetricKey, AlgorithmParameterSpec parameterSpec)
      Constructor of Hybrid encryption output data holder.
      Parameters:
      cipherData - : Byte array of encrypted data.
      encryptedSymmetricKey - : Byte array of encrypted symmetric key.
      parameterSpec - : Parameter specification used for symmetric encryption.
    • HybridEncryptionOutput

      public HybridEncryptionOutput(byte[] cipherData, byte[] encryptedSymmetricKey, byte[] authData, byte[] authTag, AlgorithmParameterSpec parameterSpec)
      Constructor of Hybrid encryption output data holder.
      Parameters:
      cipherData - : Byte array of encrypted data.
      encryptedSymmetricKey - : Byte array of encrypted symmetric key.
      authData - : Byte array of authentication data used for symmetric encryption.
      authTag - : Byte array of authentication tag produced by the symmetric encryption.
      parameterSpec - : Parameter specification used for symmetric encryption.
  • Method Details

    • getEncryptedSymmetricKey

      public byte[] getEncryptedSymmetricKey()
    • getCipherData

      public byte[] getCipherData()
    • getParameterSpec

      public AlgorithmParameterSpec getParameterSpec()
    • getAuthData

      public byte[] getAuthData()
    • getAuthTag

      public byte[] getAuthTag()