public final class EncryptResult extends Object
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getAdditionalAuthenticatedData()
Get additional data to authenticate the encrypted content.
|
EncryptionAlgorithm |
getAlgorithm()
Get the encryption algorithm used for encryption.
|
byte[] |
getAuthenticationTag()
Get the tag to authenticate the encrypted content.
|
byte[] |
getCipherText()
Get the encrypted content.
|
byte[] |
getIv()
Get the initialization vector used by symmetric algorithms.
|
String |
getKeyId()
Get the identifier of the key used to do encryption
|
public EncryptResult(byte[] ciphertext, EncryptionAlgorithm algorithm, String keyId)
ciphertext
- The encrypted content.algorithm
- The algorithm used to encrypt the content.keyId
- The identifier of the key usd for the encryption operation.public EncryptResult(byte[] ciphertext, EncryptionAlgorithm algorithm, String keyId, byte[] iv, byte[] authenticationTag, byte[] additionalAuthenticatedData)
ciphertext
- The encrypted content.algorithm
- The algorithm used to encrypt the content.keyId
- The identifier of the key usd for the encryption operation.iv
- Initialization vector for symmetric algorithms.authenticationTag
- The tag to authenticate when performing decryption with an authenticated algorithm.additionalAuthenticatedData
- Additional data to authenticate but not encrypt/decrypt when using authenticated crypto algorithms.public String getKeyId()
public byte[] getCipherText()
public EncryptionAlgorithm getAlgorithm()
public byte[] getIv()
public byte[] getAuthenticationTag()
public byte[] getAdditionalAuthenticatedData()
Visit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.