Class DecryptParameters
java.lang.Object
com.azure.security.keyvault.keys.cryptography.models.DecryptParameters
A class containing various configuration parameters that can be applied when performing decryption operations.
-
Method Summary
Modifier and TypeMethodDescriptionstatic DecryptParameterscreateA128CbcPadParameters(byte[] ciphertext, byte[] iv) Factory method to create an instance ofDecryptParameterswith the given parameters forEncryptionAlgorithm.A128CBCPAD.static DecryptParameterscreateA128CbcParameters(byte[] ciphertext, byte[] iv) Factory method to create an instance ofDecryptParameterswith the given parameters forEncryptionAlgorithm.A128CBC.static DecryptParameterscreateA128GcmParameters(byte[] ciphertext, byte[] iv, byte[] authenticationTag) Factory method to create an instance ofDecryptParameterswith the given parameters forEncryptionAlgorithm.A128GCM.static DecryptParameterscreateA128GcmParameters(byte[] ciphertext, byte[] iv, byte[] authenticationTag, byte[] additionalAuthenticatedData) Factory method to create an instance ofDecryptParameterswith the given parameters forEncryptionAlgorithm.A128GCM.static DecryptParameterscreateA192CbcPadParameters(byte[] ciphertext, byte[] iv) Factory method to create an instance ofDecryptParameterswith the given parameters forEncryptionAlgorithm.A192CBCPAD.static DecryptParameterscreateA192CbcParameters(byte[] ciphertext, byte[] iv) Factory method to create an instance ofDecryptParameterswith the given parameters forEncryptionAlgorithm.A192CBC.static DecryptParameterscreateA192GcmParameters(byte[] ciphertext, byte[] iv, byte[] authenticationTag) Factory method to create an instance ofDecryptParameterswith the given parameters forEncryptionAlgorithm.A192GCM.static DecryptParameterscreateA192GcmParameters(byte[] ciphertext, byte[] iv, byte[] authenticationTag, byte[] additionalAuthenticatedData) Factory method to create an instance ofDecryptParameterswith the given parameters forEncryptionAlgorithm.A192GCM.static DecryptParameterscreateA256CbcPadParameters(byte[] ciphertext, byte[] iv) Factory method to create an instance ofDecryptParameterswith the given parameters forEncryptionAlgorithm.A256CBCPAD.static DecryptParameterscreateA256CbcParameters(byte[] ciphertext, byte[] iv) Factory method to create an instance ofDecryptParameterswith the given parameters forEncryptionAlgorithm.A256CBC.static DecryptParameterscreateA256GcmParameters(byte[] ciphertext, byte[] iv, byte[] authenticationTag) Factory method to create an instance ofDecryptParameterswith the given parameters forEncryptionAlgorithm.A256GCM.static DecryptParameterscreateA256GcmParameters(byte[] ciphertext, byte[] iv, byte[] authenticationTag, byte[] additionalAuthenticatedData) Factory method to create an instance ofDecryptParameterswith the given parameters forEncryptionAlgorithm.A256GCM.static DecryptParameterscreateRsa15Parameters(byte[] ciphertext) Factory method to create an instance ofDecryptParameterswith the given parameters forEncryptionAlgorithm.RSA1_5.static DecryptParameterscreateRsaOaep256Parameters(byte[] ciphertext) Factory method to create an instance ofDecryptParameterswith the given parameters forEncryptionAlgorithm.RSA_OAEP_256.static DecryptParameterscreateRsaOaepParameters(byte[] ciphertext) Factory method to create an instance ofDecryptParameterswith the given parameters forEncryptionAlgorithm.RSA_OAEP.byte[]Get additional data to authenticate when performing decryption with an authenticated algorithm.The algorithm to be used for decryption.byte[]Get the tag to authenticate when performing decryption with an authenticated algorithm.byte[]Get the content to be decrypted.byte[]getIv()Get the initialization vector to be used in the decryption operation using a symmetric algorithm.
-
Method Details
-
createA128CbcParameters
Factory method to create an instance ofDecryptParameterswith the given parameters forEncryptionAlgorithm.A128CBC.- Parameters:
ciphertext- The content to be decrypted. Microsoft recommends you not use CBC without first ensuring the integrity of the ciphertext using an HMAC, for example. See https://docs.microsoft.com/dotnet/standard/security/vulnerabilities-cbc-mode for more information.iv- Initialization vector for the decryption operation.- Returns:
- The
DecryptParameters.
-
createA128CbcPadParameters
Factory method to create an instance ofDecryptParameterswith the given parameters forEncryptionAlgorithm.A128CBCPAD.- Parameters:
ciphertext- The content to be decrypted. Microsoft recommends you not use CBC without first ensuring the integrity of the ciphertext using an HMAC, for example. See https://docs.microsoft.com/dotnet/standard/security/vulnerabilities-cbc-mode for more information.iv- Initialization vector for the decryption operation.- Returns:
- The
DecryptParameters.
-
createA128GcmParameters
public static DecryptParameters createA128GcmParameters(byte[] ciphertext, byte[] iv, byte[] authenticationTag) Factory method to create an instance ofDecryptParameterswith the given parameters forEncryptionAlgorithm.A128GCM.- Parameters:
ciphertext- The content to be decrypted.iv- Initialization vector for the decryption operation.authenticationTag- The tag to authenticate when performing decryption.- Returns:
- The
DecryptParameters.
-
createA128GcmParameters
public static DecryptParameters createA128GcmParameters(byte[] ciphertext, byte[] iv, byte[] authenticationTag, byte[] additionalAuthenticatedData) Factory method to create an instance ofDecryptParameterswith the given parameters forEncryptionAlgorithm.A128GCM.- Parameters:
ciphertext- The content to be decrypted.iv- Initialization vector for the decryption operation.authenticationTag- The tag to authenticate when performing decryption.additionalAuthenticatedData- Additional data to authenticate when using authenticated crypto algorithms.- Returns:
- The
DecryptParameters.
-
createA192CbcParameters
Factory method to create an instance ofDecryptParameterswith the given parameters forEncryptionAlgorithm.A192CBC.- Parameters:
ciphertext- The content to be decrypted. Microsoft recommends you not use CBC without first ensuring the integrity of the ciphertext using an HMAC, for example. See https://docs.microsoft.com/dotnet/standard/security/vulnerabilities-cbc-mode for more information.iv- Initialization vector for the decryption operation.- Returns:
- The
DecryptParameters.
-
createA192CbcPadParameters
Factory method to create an instance ofDecryptParameterswith the given parameters forEncryptionAlgorithm.A192CBCPAD.- Parameters:
ciphertext- The content to be decrypted. Microsoft recommends you not use CBC without first ensuring the integrity of the ciphertext using an HMAC, for example. See https://docs.microsoft.com/dotnet/standard/security/vulnerabilities-cbc-mode for more information.iv- Initialization vector for the decryption operation.- Returns:
- The
DecryptParameters.
-
createA192GcmParameters
public static DecryptParameters createA192GcmParameters(byte[] ciphertext, byte[] iv, byte[] authenticationTag) Factory method to create an instance ofDecryptParameterswith the given parameters forEncryptionAlgorithm.A192GCM.- Parameters:
ciphertext- The content to be decrypted.iv- Initialization vector for the decryption operation.authenticationTag- The tag to authenticate when performing decryption.- Returns:
- The
DecryptParameters.
-
createA192GcmParameters
public static DecryptParameters createA192GcmParameters(byte[] ciphertext, byte[] iv, byte[] authenticationTag, byte[] additionalAuthenticatedData) Factory method to create an instance ofDecryptParameterswith the given parameters forEncryptionAlgorithm.A192GCM.- Parameters:
ciphertext- The content to be decrypted.iv- Initialization vector for the decryption operation.authenticationTag- The tag to authenticate when performing decryption.additionalAuthenticatedData- Additional data to authenticate when using authenticated crypto algorithms.- Returns:
- The
DecryptParameters.
-
createA256CbcParameters
Factory method to create an instance ofDecryptParameterswith the given parameters forEncryptionAlgorithm.A256CBC.- Parameters:
ciphertext- The content to be decrypted. Microsoft recommends you not use CBC without first ensuring the integrity of the ciphertext using an HMAC, for example. See https://docs.microsoft.com/dotnet/standard/security/vulnerabilities-cbc-mode for more information.iv- Initialization vector for the decryption operation.- Returns:
- The
DecryptParameters.
-
createA256CbcPadParameters
Factory method to create an instance ofDecryptParameterswith the given parameters forEncryptionAlgorithm.A256CBCPAD.- Parameters:
ciphertext- The content to be decrypted. Microsoft recommends you not use CBC without first ensuring the integrity of the ciphertext using an HMAC, for example. See https://docs.microsoft.com/dotnet/standard/security/vulnerabilities-cbc-mode for more information.iv- Initialization vector for the decryption operation.- Returns:
- The
DecryptParameters.
-
createA256GcmParameters
public static DecryptParameters createA256GcmParameters(byte[] ciphertext, byte[] iv, byte[] authenticationTag) Factory method to create an instance ofDecryptParameterswith the given parameters forEncryptionAlgorithm.A256GCM.- Parameters:
ciphertext- The content to be decrypted.iv- Initialization vector for the decryption operation.authenticationTag- The tag to authenticate when performing decryption.- Returns:
- The
DecryptParameters.
-
createA256GcmParameters
public static DecryptParameters createA256GcmParameters(byte[] ciphertext, byte[] iv, byte[] authenticationTag, byte[] additionalAuthenticatedData) Factory method to create an instance ofDecryptParameterswith the given parameters forEncryptionAlgorithm.A256GCM.- Parameters:
ciphertext- The content to be decrypted.iv- Initialization vector for the decryption operation.authenticationTag- The tag to authenticate when performing decryption.additionalAuthenticatedData- Additional data to authenticate when using authenticated crypto algorithms.- Returns:
- The
DecryptParameters.
-
createRsa15Parameters
Factory method to create an instance ofDecryptParameterswith the given parameters forEncryptionAlgorithm.RSA1_5.- Parameters:
ciphertext- The content to be decrypted.- Returns:
- The
DecryptParameters.
-
createRsaOaepParameters
Factory method to create an instance ofDecryptParameterswith the given parameters forEncryptionAlgorithm.RSA_OAEP.- Parameters:
ciphertext- The content to be decrypted.- Returns:
- The
DecryptParameters.
-
createRsaOaep256Parameters
Factory method to create an instance ofDecryptParameterswith the given parameters forEncryptionAlgorithm.RSA_OAEP_256.- Parameters:
ciphertext- The content to be decrypted.- Returns:
- The
DecryptParameters.
-
getAlgorithm
The algorithm to be used for decryption.- Returns:
- The algorithm to be used for decryption.
-
getCipherText
public byte[] getCipherText()Get the content to be decrypted.- Returns:
- The content to be decrypted.
-
getIv
public byte[] getIv()Get the initialization vector to be used in the decryption operation using a symmetric algorithm.- Returns:
- The initialization vector.
-
getAdditionalAuthenticatedData
public byte[] getAdditionalAuthenticatedData()Get additional data to authenticate when performing decryption with an authenticated algorithm.- Returns:
- The additional authenticated data.
-
getAuthenticationTag
public byte[] getAuthenticationTag()Get the tag to authenticate when performing decryption with an authenticated algorithm.- Returns:
- The authentication tag.
-