EncryptResult Class

Definition

Represents the details of encrypt operation result.

public final class EncryptResult
Inheritance
java.lang.Object
EncryptResult

Inherited Members

java.lang.Object.clone() java.lang.Object.equals(java.lang.Object) java.lang.Object.finalize() java.lang.Object.getClass() java.lang.Object.hashCode() java.lang.Object.notify() java.lang.Object.notifyAll() java.lang.Object.toString() java.lang.Object.wait() java.lang.Object.wait(long) java.lang.Object.wait(long,int)

Constructors

EncryptResult(byte[] ciphertext, EncryptionAlgorithm algorithm, String keyId)

Creates the instance of Encrypt Result holding encryption operation response information.

EncryptResult(byte[] ciphertext, EncryptionAlgorithm algorithm, String keyId, byte[] iv, byte[] authenticationTag, byte[] additionalAuthenticatedData)

Creates the instance of Encrypt Result holding encryption operation response information.

Methods

getAdditionalAuthenticatedData()

Get additional data to authenticate the encrypted content.

getAlgorithm()

Get the encryption algorithm used for encryption.

getAuthenticationTag()

Get the tag to authenticate the encrypted content.

getCipherText()

Get the encrypted content.

getIv()

Get the initialization vector used by symmetric algorithms.

getKeyId()

Get the identifier of the key used to do encryption

Applies to