AsymmetricEncryptionAlgorithm Class

public class AsymmetricEncryptionAlgorithm extends EncryptionAlgorithm

Abstract base class for all asymmetric encryption algorithms.

Constructor Summary

Constructor Description
AsymmetricEncryptionAlgorithm(String name)

Constructor.

Method Summary

Modifier and Type Method and Description
abstract ICryptoTransform CreateDecryptor(KeyPair keyPair)

Creates a ICryptoTransform implementation for decryption that uses the specified java.security.KeyPair and the default java.security.Provider provider.

abstract ICryptoTransform CreateDecryptor(KeyPair keyPair, Provider provider)

Creates a ICryptoTransform implementation for decryption that uses the specified java.security.KeyPair and java.security.Provider.

abstract ICryptoTransform CreateEncryptor(KeyPair keyPair)

Creates a ICryptoTransform implementation for encryption that uses the specified java.security.KeyPair and the default java.security.Provider provider.

abstract ICryptoTransform CreateEncryptor(KeyPair keyPair, Provider provider)

Creates a ICryptoTransform implementation for encryption that uses the specified java.security.KeyPair and java.security.Provider.

Inherited Members

Constructor Details

AsymmetricEncryptionAlgorithm

protected AsymmetricEncryptionAlgorithm(String name)

Constructor.

Parameters:

name - The name of the algorithm.

Method Details

CreateDecryptor

public abstract ICryptoTransform CreateDecryptor(KeyPair keyPair)

Creates a ICryptoTransform implementation for decryption that uses the specified java.security.KeyPair and the default java.security.Provider provider.

Parameters:

keyPair - The key pair to use.

Throws:

InvalidKeyException
NoSuchAlgorithmException
NoSuchPaddingException

CreateDecryptor

public abstract ICryptoTransform CreateDecryptor(KeyPair keyPair, Provider provider)

Creates a ICryptoTransform implementation for decryption that uses the specified java.security.KeyPair and java.security.Provider.

Parameters:

keyPair - The key pair to use.
provider - The provider to use.

Throws:

InvalidKeyException
NoSuchAlgorithmException
NoSuchPaddingException

CreateEncryptor

public abstract ICryptoTransform CreateEncryptor(KeyPair keyPair)

Creates a ICryptoTransform implementation for encryption that uses the specified java.security.KeyPair and the default java.security.Provider provider.

Parameters:

keyPair - The key pair to use.

Throws:

InvalidKeyException
NoSuchAlgorithmException
NoSuchPaddingException

CreateEncryptor

public abstract ICryptoTransform CreateEncryptor(KeyPair keyPair, Provider provider)

Creates a ICryptoTransform implementation for encryption that uses the specified java.security.KeyPair and java.security.Provider.

Parameters:

keyPair - The key pair to use.
provider - The provider to use.

Throws:

InvalidKeyException
NoSuchAlgorithmException
NoSuchPaddingException

Applies to