Android Guides | Samples

Javax.Crypto.ExemptionMechanismSpi.EngineInit Method

Initializes this ExemptionMechanism instance with the specified key and algorithm parameters.

Syntax

[Android.Runtime.Register("engineInit", "(Ljava/security/Key;Ljava/security/spec/AlgorithmParameterSpec;)V", "GetEngineInit_Ljava_security_Key_Ljava_security_spec_AlgorithmParameterSpec_Handler")]
protected abstract Void EngineInit (IKey key, IAlgorithmParameterSpec params)

Parameters

key
the key to initialize this instance with.
params
the parameters for this exemption mechanism algorithm.

Exceptions

TypeReason
InvalidKeyExceptionif the key cannot be used to initialize this mechanism.
InvalidAlgorithmParameterExceptionthe the parameters cannot be used to initialize this mechanism.
ExemptionMechanismExceptionif error(s) occur during initialization.

Remarks

Initializes this ExemptionMechanism instance with the specified key and 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