EncryptResult Class
- java.
lang. Object - com.
azure. security. keyvault. keys. cryptography. models. EncryptResult
- com.
public final class EncryptResult
Represents the details of encrypt operation result.
Constructor Summary
Constructor | 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. |
Method Summary
Modifier and Type | Method and Description |
---|---|
byte[] |
getAdditionalAuthenticatedData()
Get additional data to authenticate the encrypted content. |
Encryption |
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 |
Methods inherited from java.lang.Object
Constructor Details
EncryptResult
public EncryptResult(byte[] ciphertext, EncryptionAlgorithm algorithm, String keyId)
Creates the instance of Encrypt Result holding encryption operation response information.
Parameters:
EncryptResult
public EncryptResult(byte[] ciphertext, EncryptionAlgorithm algorithm, String keyId, byte[] iv, byte[] authenticationTag, byte[] additionalAuthenticatedData)
Creates the instance of Encrypt Result holding encryption operation response information.
Parameters:
Method Details
getAdditionalAuthenticatedData
public byte[] getAdditionalAuthenticatedData()
Get additional data to authenticate the encrypted content.
Returns:
getAlgorithm
public EncryptionAlgorithm getAlgorithm()
Get the encryption algorithm used for encryption.
Returns:
getAuthenticationTag
public byte[] getAuthenticationTag()
Get the tag to authenticate the encrypted content.
Returns:
getCipherText
public byte[] getCipherText()
Get the encrypted content.
Returns:
getIv
public byte[] getIv()
Get the initialization vector used by symmetric algorithms.
Returns:
getKeyId
public String getKeyId()
Get the identifier of the key used to do encryption
Returns:
Applies to
Azure SDK for Java