Javax.Crypto.KeyAgreement.GenerateSecret Method
Generates the shared secret.

Syntax

[Android.Runtime.Register("generateSecret", "(Ljava/lang/String;)Ljavax/crypto/SecretKey;", "")]
public ISecretKey GenerateSecret (string algorithm)

Parameters

algorithm
the algorithm to for the SecretKey

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.IllegalStateExceptionif this key agreement is not complete.
Java.Security.NoSuchAlgorithmExceptionif the specified algorithm for the secret key does not exists.
Java.Security.InvalidKeyExceptionif a SecretKey with the specified algorithm cannot be created using the generated shared secret.

Remarks

Generates the shared secret.

[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