Package org.wso2.carbon.crypto.api
Class HybridEncryptionInput
java.lang.Object
org.wso2.carbon.crypto.api.HybridEncryptionInput
Data holder for hybrid encryption input.
This class keeps the data needs to be encrypted and
if any available authentication data related to symmetric encryption.
-
Constructor Summary
ConstructorsConstructorDescriptionHybridEncryptionInput(byte[] plainData) Constructor ofHybridEncryptionInputwhich requires only plain data for hybrid encryption.HybridEncryptionInput(byte[] plainData, byte[] authData) Constructor ofHybridEncryptionInputwhich requires plain data and authentication data for hybrid encryption. -
Method Summary
-
Constructor Details
-
HybridEncryptionInput
public HybridEncryptionInput(byte[] plainData) Constructor ofHybridEncryptionInputwhich requires only plain data for hybrid encryption.- Parameters:
plainData- : Byte array of plain data that needs to be encrypted.
-
HybridEncryptionInput
public HybridEncryptionInput(byte[] plainData, byte[] authData) Constructor ofHybridEncryptionInputwhich requires plain data and authentication data for hybrid encryption.- Parameters:
plainData- : Byte array of plain data that needs to be encrypted.authData- : Byte array of authentication data related to hybrid encryption.
-
-
Method Details
-
getPlainData
public byte[] getPlainData() -
getAuthData
public byte[] getAuthData()
-