Class AesKw128
- java.lang.Object
-
- com.microsoft.azure.keyvault.cryptography.Algorithm
-
- com.microsoft.azure.keyvault.cryptography.KeyWrapAlgorithm
-
- com.microsoft.azure.keyvault.cryptography.algorithms.AesKw
-
- com.microsoft.azure.keyvault.cryptography.algorithms.AesKw128
-
public final class AesKw128 extends AesKw
-
-
Field Summary
Fields Modifier and Type Field Description static String
ALGORITHM_NAME
-
Constructor Summary
Constructors Constructor Description AesKw128()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ICryptoTransform
CreateDecryptor(byte[] key, byte[] iv, 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, Provider provider)
Creates aICryptoTransform
implementation for encryption using the supplied initialization vector and the specific provider for the Java Security API.-
Methods inherited from class com.microsoft.azure.keyvault.cryptography.algorithms.AesKw
CreateDecryptor, CreateDecryptor, CreateDecryptor, CreateEncryptor, CreateEncryptor, CreateEncryptor
-
-
-
-
Field Detail
-
ALGORITHM_NAME
public static final String ALGORITHM_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
CreateEncryptor
public ICryptoTransform CreateEncryptor(byte[] key, byte[] iv, Provider provider) throws InvalidKeyException, NoSuchAlgorithmException, NoSuchPaddingException, InvalidAlgorithmParameterException
Description copied from class:KeyWrapAlgorithm
Creates aICryptoTransform
implementation for encryption using the supplied initialization vector and the specific provider for the Java Security API.- Overrides:
CreateEncryptor
in classAesKw
- Parameters:
key
- The AES key material to be used.iv
- The initialization vector to be used.provider
- The provider to use.- Returns:
- A
ICryptoTransform
implementation - Throws:
InvalidKeyException
NoSuchAlgorithmException
NoSuchPaddingException
InvalidAlgorithmParameterException
-
CreateDecryptor
public ICryptoTransform CreateDecryptor(byte[] key, byte[] iv, Provider provider) throws InvalidKeyException, NoSuchAlgorithmException, NoSuchPaddingException, InvalidAlgorithmParameterException
Description copied from class:KeyWrapAlgorithm
Creates aICryptoTransform
implementation for decryption using the supplied initialization vector and the specific provider for the Java Security API.- Overrides:
CreateDecryptor
in classAesKw
- Parameters:
key
- The AES key material to be used.iv
- The initialization vector to be used.provider
- The provider to use.- Returns:
- A
ICryptoTransform
implementation - Throws:
InvalidKeyException
NoSuchAlgorithmException
NoSuchPaddingException
InvalidAlgorithmParameterException
-
-