AsymmetricEncryptionAlgorithm.CreateDecryptor Method

Definition

Overloads

CreateDecryptor(KeyPair keyPair)

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

CreateDecryptor(KeyPair keyPair, Provider provider)

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

CreateDecryptor(KeyPair keyPair)

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

public abstract ICryptoTransform CreateDecryptor(KeyPair keyPair)

Parameters

keyPair
KeyPair

The key pair to use.

Returns

abstract ICryptoTransform

Exceptions

InvalidKeyException
NoSuchAlgorithmException
NoSuchPaddingException

CreateDecryptor(KeyPair keyPair, Provider provider)

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

public abstract ICryptoTransform CreateDecryptor(KeyPair keyPair, Provider provider)

Parameters

keyPair
KeyPair

The key pair to use.

provider
Provider

The provider to use.

Returns

abstract ICryptoTransform

Exceptions

InvalidKeyException
NoSuchAlgorithmException
NoSuchPaddingException

Applies to