Package org.wso2.carbon.crypto.api
Class HybridEncryptionOutput
java.lang.Object
org.wso2.carbon.crypto.api.HybridEncryptionOutput
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 Summary
ConstructorsConstructorDescriptionHybridEncryptionOutput(byte[] cipherData, byte[] encryptedSymmetricKey) Constructor of Hybrid encryption output data holder.HybridEncryptionOutput(byte[] cipherData, byte[] encryptedSymmetricKey, byte[] authData, byte[] authTag, AlgorithmParameterSpec parameterSpec) Constructor of Hybrid encryption output data holder.HybridEncryptionOutput(byte[] cipherData, byte[] encryptedSymmetricKey, AlgorithmParameterSpec parameterSpec) Constructor of Hybrid encryption output data holder. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]byte[]byte[]byte[]
-
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
-
getAuthData
public byte[] getAuthData() -
getAuthTag
public byte[] getAuthTag()
-