Javax.Crypto.KeyAgreement.GetInstance Method
Create a new KeyAgreement for the specified algorithm from the specified provider.

Syntax

[Android.Runtime.Register("getInstance", "(Ljava/lang/String;Ljava/security/Provider;)Ljavax/crypto/KeyAgreement;", "")]
public static KeyAgreement GetInstance (string algorithm, Java.Security.Provider provider)

Parameters

algorithm
the name of the key agreement algorithm to create.
provider
the provider that provides the requested algorithm.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Security.NoSuchAlgorithmExceptionif the specified provider cannot provide the requested algorithm.
Java.Lang.IllegalArgumentExceptionif the specified provider is null.
Java.Lang.NullPointerExceptionif the specified algorithm name is null.

Remarks

Create a new KeyAgreement for the specified algorithm from the specified provider. The provider supplied does not have to be registered.

[Android Documentation]

Requirements

Namespace: Javax.Crypto
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1