Class AsymmetricEncryptionAlgorithm
- java.lang.Object
-
- com.microsoft.azure.keyvault.cryptography.Algorithm
-
- com.microsoft.azure.keyvault.cryptography.EncryptionAlgorithm
-
- com.microsoft.azure.keyvault.cryptography.AsymmetricEncryptionAlgorithm
-
- Direct Known Subclasses:
RsaEncryption
public abstract class AsymmetricEncryptionAlgorithm extends EncryptionAlgorithm
Abstract base class for all asymmetric encryption algorithms.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AsymmetricEncryptionAlgorithm(String name)
Constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract ICryptoTransform
CreateDecryptor(KeyPair keyPair)
Creates aICryptoTransform
implementation for decryption that uses the specifiedKeyPair
and the defaultProvider
provider.abstract ICryptoTransform
CreateDecryptor(KeyPair keyPair, Provider provider)
Creates aICryptoTransform
implementation for decryption that uses the specifiedKeyPair
andProvider
.abstract ICryptoTransform
CreateEncryptor(KeyPair keyPair)
Creates aICryptoTransform
implementation for encryption that uses the specifiedKeyPair
and the defaultProvider
provider.abstract ICryptoTransform
CreateEncryptor(KeyPair keyPair, Provider provider)
Creates aICryptoTransform
implementation for encryption that uses the specifiedKeyPair
andProvider
.
-
-
-
Constructor Detail
-
AsymmetricEncryptionAlgorithm
protected AsymmetricEncryptionAlgorithm(String name)
Constructor.- Parameters:
name
- The name of the algorithm.
-
-
Method Detail
-
CreateEncryptor
public abstract ICryptoTransform CreateEncryptor(KeyPair keyPair) throws InvalidKeyException, NoSuchAlgorithmException, NoSuchPaddingException
Creates aICryptoTransform
implementation for encryption that uses the specifiedKeyPair
and the defaultProvider
provider.- Parameters:
keyPair
- The key pair to use.- Returns:
- Throws:
InvalidKeyException
NoSuchAlgorithmException
NoSuchPaddingException
-
CreateEncryptor
public abstract ICryptoTransform CreateEncryptor(KeyPair keyPair, Provider provider) throws InvalidKeyException, NoSuchAlgorithmException, NoSuchPaddingException
Creates aICryptoTransform
implementation for encryption that uses the specifiedKeyPair
andProvider
.- Parameters:
keyPair
- The key pair to use.provider
- The provider to use.- Returns:
- Throws:
InvalidKeyException
NoSuchAlgorithmException
NoSuchPaddingException
-
CreateDecryptor
public abstract ICryptoTransform CreateDecryptor(KeyPair keyPair) throws InvalidKeyException, NoSuchAlgorithmException, NoSuchPaddingException
Creates aICryptoTransform
implementation for decryption that uses the specifiedKeyPair
and the defaultProvider
provider.- Parameters:
keyPair
- The key pair to use.- Returns:
- Throws:
InvalidKeyException
NoSuchAlgorithmException
NoSuchPaddingException
-
CreateDecryptor
public abstract ICryptoTransform CreateDecryptor(KeyPair keyPair, Provider provider) throws InvalidKeyException, NoSuchAlgorithmException, NoSuchPaddingException
Creates aICryptoTransform
implementation for decryption that uses the specifiedKeyPair
andProvider
.- Parameters:
keyPair
- The key pair to use.provider
- The provider to use.- Returns:
- Throws:
InvalidKeyException
NoSuchAlgorithmException
NoSuchPaddingException
-
-