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 protectedAsymmetricEncryptionAlgorithm(String name)Constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract ICryptoTransformCreateDecryptor(KeyPair keyPair)Creates aICryptoTransformimplementation for decryption that uses the specifiedKeyPairand the defaultProviderprovider.abstract ICryptoTransformCreateDecryptor(KeyPair keyPair, Provider provider)Creates aICryptoTransformimplementation for decryption that uses the specifiedKeyPairandProvider.abstract ICryptoTransformCreateEncryptor(KeyPair keyPair)Creates aICryptoTransformimplementation for encryption that uses the specifiedKeyPairand the defaultProviderprovider.abstract ICryptoTransformCreateEncryptor(KeyPair keyPair, Provider provider)Creates aICryptoTransformimplementation for encryption that uses the specifiedKeyPairandProvider.
-
-
-
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 aICryptoTransformimplementation for encryption that uses the specifiedKeyPairand the defaultProviderprovider.- Parameters:
keyPair- The key pair to use.- Returns:
- Throws:
InvalidKeyExceptionNoSuchAlgorithmExceptionNoSuchPaddingException
-
CreateEncryptor
public abstract ICryptoTransform CreateEncryptor(KeyPair keyPair, Provider provider) throws InvalidKeyException, NoSuchAlgorithmException, NoSuchPaddingException
Creates aICryptoTransformimplementation for encryption that uses the specifiedKeyPairandProvider.- Parameters:
keyPair- The key pair to use.provider- The provider to use.- Returns:
- Throws:
InvalidKeyExceptionNoSuchAlgorithmExceptionNoSuchPaddingException
-
CreateDecryptor
public abstract ICryptoTransform CreateDecryptor(KeyPair keyPair) throws InvalidKeyException, NoSuchAlgorithmException, NoSuchPaddingException
Creates aICryptoTransformimplementation for decryption that uses the specifiedKeyPairand the defaultProviderprovider.- Parameters:
keyPair- The key pair to use.- Returns:
- Throws:
InvalidKeyExceptionNoSuchAlgorithmExceptionNoSuchPaddingException
-
CreateDecryptor
public abstract ICryptoTransform CreateDecryptor(KeyPair keyPair, Provider provider) throws InvalidKeyException, NoSuchAlgorithmException, NoSuchPaddingException
Creates aICryptoTransformimplementation for decryption that uses the specifiedKeyPairandProvider.- Parameters:
keyPair- The key pair to use.provider- The provider to use.- Returns:
- Throws:
InvalidKeyExceptionNoSuchAlgorithmExceptionNoSuchPaddingException
-
-