Class AesKw
- java.lang.Object
-
- com.microsoft.azure.keyvault.cryptography.Algorithm
-
- com.microsoft.azure.keyvault.cryptography.KeyWrapAlgorithm
-
- com.microsoft.azure.keyvault.cryptography.algorithms.AesKw
-
public abstract class AesKw extends KeyWrapAlgorithm
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ICryptoTransform
CreateDecryptor(byte[] key)
Creates aICryptoTransform
implementation for decryption.ICryptoTransform
CreateDecryptor(byte[] key, byte[] iv)
Creates aICryptoTransform
implementation for decryption using the supplied initialization vector.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
CreateDecryptor(byte[] key, Provider provider)
Creates aICryptoTransform
implementation for decryption that uses the specified provider for the Java Security API.ICryptoTransform
CreateEncryptor(byte[] key)
Creates aICryptoTransform
implementation for encryption.ICryptoTransform
CreateEncryptor(byte[] key, byte[] iv)
Creates aICryptoTransform
implementation for encryption using the supplied initialization vector.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.ICryptoTransform
CreateEncryptor(byte[] key, Provider provider)
Creates aICryptoTransform
implementation for encryption that uses the specified provider for the Java Security API.
-
-
-
Constructor Detail
-
AesKw
protected AesKw(String name)
-
-
Method Detail
-
CreateEncryptor
public ICryptoTransform CreateEncryptor(byte[] key) throws NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException, InvalidAlgorithmParameterException
Description copied from class:KeyWrapAlgorithm
Creates aICryptoTransform
implementation for encryption. Uses the default AES-KW initialization vector.- Specified by:
CreateEncryptor
in classKeyWrapAlgorithm
- Parameters:
key
- The AES key material to be used.- Returns:
- A
ICryptoTransform
implementation - Throws:
NoSuchAlgorithmException
NoSuchPaddingException
InvalidKeyException
InvalidAlgorithmParameterException
-
CreateEncryptor
public ICryptoTransform CreateEncryptor(byte[] key, Provider provider) throws NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException, InvalidAlgorithmParameterException
Description copied from class:KeyWrapAlgorithm
Creates aICryptoTransform
implementation for encryption that uses the specified provider for the Java Security API. Uses the default AES-KW initialization vector.- Specified by:
CreateEncryptor
in classKeyWrapAlgorithm
- Parameters:
key
- The AES key material to be used.provider
- The provider to use.- Returns:
- A
ICryptoTransform
implementation - Throws:
NoSuchAlgorithmException
NoSuchPaddingException
InvalidKeyException
InvalidAlgorithmParameterException
-
CreateEncryptor
public ICryptoTransform CreateEncryptor(byte[] key, byte[] iv) throws NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException, InvalidAlgorithmParameterException
Description copied from class:KeyWrapAlgorithm
Creates aICryptoTransform
implementation for encryption using the supplied initialization vector.- Specified by:
CreateEncryptor
in classKeyWrapAlgorithm
- Parameters:
key
- The AES key material to be used.iv
- The initialization vector to be used.- Returns:
- A
ICryptoTransform
implementation - Throws:
NoSuchAlgorithmException
NoSuchPaddingException
InvalidKeyException
InvalidAlgorithmParameterException
-
CreateEncryptor
public ICryptoTransform CreateEncryptor(byte[] key, byte[] iv, Provider provider) throws NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException, 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.- Specified by:
CreateEncryptor
in classKeyWrapAlgorithm
- 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:
NoSuchAlgorithmException
NoSuchPaddingException
InvalidKeyException
InvalidAlgorithmParameterException
-
CreateDecryptor
public ICryptoTransform CreateDecryptor(byte[] key) throws NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException, InvalidAlgorithmParameterException
Description copied from class:KeyWrapAlgorithm
Creates aICryptoTransform
implementation for decryption. Uses the default AES-KW initialization vector.- Specified by:
CreateDecryptor
in classKeyWrapAlgorithm
- Parameters:
key
- The AES key material to be used.- Returns:
- A
ICryptoTransform
implementation - Throws:
NoSuchAlgorithmException
NoSuchPaddingException
InvalidKeyException
InvalidAlgorithmParameterException
-
CreateDecryptor
public ICryptoTransform CreateDecryptor(byte[] key, Provider provider) throws NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException, InvalidAlgorithmParameterException
Description copied from class:KeyWrapAlgorithm
Creates aICryptoTransform
implementation for decryption that uses the specified provider for the Java Security API. Uses the default AES-KW initialization vector.- Specified by:
CreateDecryptor
in classKeyWrapAlgorithm
- Parameters:
key
- The AES key material to be used.provider
- The provider to use.- Returns:
- A
ICryptoTransform
implementation - Throws:
NoSuchAlgorithmException
NoSuchPaddingException
InvalidKeyException
InvalidAlgorithmParameterException
-
CreateDecryptor
public ICryptoTransform CreateDecryptor(byte[] key, byte[] iv) throws NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException, InvalidAlgorithmParameterException
Description copied from class:KeyWrapAlgorithm
Creates aICryptoTransform
implementation for decryption using the supplied initialization vector.- Specified by:
CreateDecryptor
in classKeyWrapAlgorithm
- Parameters:
key
- The AES key material to be used.iv
- The initialization vector to be used.- Returns:
- A
ICryptoTransform
implementation - Throws:
NoSuchAlgorithmException
NoSuchPaddingException
InvalidKeyException
InvalidAlgorithmParameterException
-
CreateDecryptor
public ICryptoTransform CreateDecryptor(byte[] key, byte[] iv, Provider provider) throws NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException, 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.- Specified by:
CreateDecryptor
in classKeyWrapAlgorithm
- 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:
NoSuchAlgorithmException
NoSuchPaddingException
InvalidKeyException
InvalidAlgorithmParameterException
-
-