Javax.Crypto.KeyGenerator.Init Method
Initializes this KeyGenerator instance with the specified algorithm parameters and randomness source.

Syntax

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

Parameters

params
the parameters for the key generation algorithm.
random
the randomness source for any random bytes.

Exceptions

TypeReason
Java.Security.InvalidAlgorithmParameterExceptionif the parameters cannot be uses to initialize this key generator algorithm.

Remarks

Initializes this KeyGenerator instance with the specified algorithm parameters and randomness source.

[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