Class AesCbcHmacSha2
- java.lang.Object
-
- com.microsoft.azure.keyvault.cryptography.Algorithm
-
- com.microsoft.azure.keyvault.cryptography.EncryptionAlgorithm
-
- com.microsoft.azure.keyvault.cryptography.SymmetricEncryptionAlgorithm
-
- com.microsoft.azure.keyvault.cryptography.algorithms.AesCbcHmacSha2
-
- Direct Known Subclasses:
Aes128CbcHmacSha256
,Aes192CbcHmacSha384
,Aes256CbcHmacSha512
public abstract class AesCbcHmacSha2 extends SymmetricEncryptionAlgorithm
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AesCbcHmacSha2(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ICryptoTransform
CreateDecryptor(byte[] key, byte[] iv, byte[] authenticationData, byte[] authenticationTag)
Creates aICryptoTransform
implementation for decryption using the supplied initialization vector and the specific provider for the Java Security API.ICryptoTransform
CreateDecryptor(byte[] key, byte[] iv, byte[] authenticationData, byte[] authenticationTag, Provider provider)
Creates aICryptoTransform
implementation for decryption using the supplied initialization vector and the specific provider for the Java Security API.ICryptoTransform
CreateEncryptor(byte[] key, byte[] iv, byte[] authenticationData)
Creates aICryptoTransform
implementation for encryption using the supplied initialization vector and the specific provider for the Java Security API.ICryptoTransform
CreateEncryptor(byte[] key, byte[] iv, byte[] authenticationData, Provider provider)
Creates aICryptoTransform
implementation for encryption using the supplied initialization vector and the specific provider for the Java Security API.
-
-
-
Constructor Detail
-
AesCbcHmacSha2
protected AesCbcHmacSha2(String name)
-
-
Method Detail
-
CreateDecryptor
public ICryptoTransform CreateDecryptor(byte[] key, byte[] iv, byte[] authenticationData, byte[] authenticationTag) throws InvalidKeyException, NoSuchAlgorithmException, NoSuchPaddingException, InvalidAlgorithmParameterException
Description copied from class:SymmetricEncryptionAlgorithm
Creates aICryptoTransform
implementation for decryption using the supplied initialization vector and the specific provider for the Java Security API.- Specified by:
CreateDecryptor
in classSymmetricEncryptionAlgorithm
- Parameters:
key
- The key material to be used.iv
- The initialization vector to be used.authenticationData
- The authentication data to be used with authenticating encryption algorithms (ignored for non-authenticating algorithms)authenticationTag
- The authentication tag to verify when using authenticating encryption algorithms (ignored for non-authenticating algorithms)- Returns:
- A
ICryptoTransform
implementation - Throws:
InvalidKeyException
NoSuchAlgorithmException
NoSuchPaddingException
InvalidAlgorithmParameterException
-
CreateDecryptor
public ICryptoTransform CreateDecryptor(byte[] key, byte[] iv, byte[] authenticationData, byte[] authenticationTag, Provider provider) throws InvalidKeyException, NoSuchAlgorithmException, NoSuchPaddingException, InvalidAlgorithmParameterException
Description copied from class:SymmetricEncryptionAlgorithm
Creates aICryptoTransform
implementation for decryption using the supplied initialization vector and the specific provider for the Java Security API.- Specified by:
CreateDecryptor
in classSymmetricEncryptionAlgorithm
- Parameters:
key
- The key material to be used.iv
- The initialization vector to be used.authenticationData
- The authentication data to be used with authenticating encryption algorithms (ignored for non-authenticating algorithms)authenticationTag
- The authentication tag to verify when using authenticating encryption algorithms (ignored for non-authenticating algorithms)provider
- The provider to use.- Returns:
- A
ICryptoTransform
implementation - Throws:
InvalidKeyException
NoSuchAlgorithmException
NoSuchPaddingException
InvalidAlgorithmParameterException
-
CreateEncryptor
public ICryptoTransform CreateEncryptor(byte[] key, byte[] iv, byte[] authenticationData) throws InvalidKeyException, NoSuchAlgorithmException, NoSuchPaddingException, InvalidAlgorithmParameterException
Description copied from class:SymmetricEncryptionAlgorithm
Creates aICryptoTransform
implementation for encryption using the supplied initialization vector and the specific provider for the Java Security API.- Specified by:
CreateEncryptor
in classSymmetricEncryptionAlgorithm
- Parameters:
key
- The key material to be used.iv
- The initialization vector to be used.authenticationData
- The authentication data to be used with authenticating encryption algorithms (ignored for non-authenticating algorithms)- Returns:
- A
ICryptoTransform
implementation - Throws:
InvalidKeyException
NoSuchAlgorithmException
NoSuchPaddingException
InvalidAlgorithmParameterException
-
CreateEncryptor
public ICryptoTransform CreateEncryptor(byte[] key, byte[] iv, byte[] authenticationData, Provider provider) throws InvalidKeyException, NoSuchAlgorithmException, NoSuchPaddingException, InvalidAlgorithmParameterException
Description copied from class:SymmetricEncryptionAlgorithm
Creates aICryptoTransform
implementation for encryption using the supplied initialization vector and the specific provider for the Java Security API.- Specified by:
CreateEncryptor
in classSymmetricEncryptionAlgorithm
- Parameters:
key
- The key material to be used.iv
- The initialization vector to be used.authenticationData
- The authentication data to be used with authenticating encryption algorithms (ignored for non-authenticating algorithms)provider
- The provider to use.- Returns:
- A
ICryptoTransform
implementation - Throws:
InvalidKeyException
NoSuchAlgorithmException
NoSuchPaddingException
InvalidAlgorithmParameterException
-
-