Javax.Crypto.KeyAgreement.Init Method
Initializes this KeyAgreement with the specified key and the algorithm parameters.

Syntax

[Android.Runtime.Register("init", "(Ljava/security/Key;Ljava/security/spec/AlgorithmParameterSpec;)V", "")]
public void Init (Java.Security.IKey key, Java.Security.Spec.IAlgorithmParameterSpec params)

Parameters

key
the key to initialize this key agreement.
params
the parameters for this key agreement algorithm.

Exceptions

TypeReason
Java.Security.InvalidKeyExceptionif the specified key cannot be used to initialize this key agreement.
Java.Security.InvalidAlgorithmParameterExceptionif the specified parameters are invalid for this key agreement algorithm.

Remarks

Initializes this KeyAgreement with the specified key and the algorithm parameters.

[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