public class EncryptResult extends Object
The base result of an encrypt operation
This class contains the fields common to all encrypt results.
Though this class has a constructor, it is recommended to use the encrypt method for generating an instance. Furthermore, this class rarely finds direct use in code and is usually used as an abstract class for EncryptEciesResult, and EncryptAesResult.
|Constructor and Description|
public EncryptResult(byte cipherText, byte tag, byte iv)
All results of encryption are identified by their ciphertext and their message authentication code
cipherText- The result of the encryption
tag- The encrypted payload’s message authentication code
iv- The initialization vector used during encryption process
public byte getCipherText()
Get the ciphertext of this EncryptResult
public byte getTag()
Get the message authentication code of this EncryptResult
public byte getIv()
Get the initialization vector of this EncryptResult