Share via


ExemptionMechanismSpi.EngineInit Method

Definition

Overloads

EngineInit(IKey)

Initializes this exemption mechanism with a key.

EngineInit(IKey, AlgorithmParameters)

Initializes this exemption mechanism with a key and a set of algorithm parameters.

EngineInit(IKey, IAlgorithmParameterSpec)

Initializes this exemption mechanism with a key and a set of algorithm parameters.

EngineInit(IKey)

Initializes this exemption mechanism with a key.

[Android.Runtime.Register("engineInit", "(Ljava/security/Key;)V", "GetEngineInit_Ljava_security_Key_Handler")]
protected abstract void EngineInit (Java.Security.IKey? key);
[<Android.Runtime.Register("engineInit", "(Ljava/security/Key;)V", "GetEngineInit_Ljava_security_Key_Handler")>]
abstract member EngineInit : Java.Security.IKey -> unit

Parameters

key
IKey

the key for this exemption mechanism

Attributes

Exceptions

if the key cannot be used to initialize this mechanism.

if error(s) occur during initialization.

Remarks

Initializes this exemption mechanism with a key.

If this exemption mechanism requires any algorithm parameters that cannot be derived from the given key, the underlying exemption mechanism implementation is supposed to generate the required parameters itself (using provider-specific default values); in the case that algorithm parameters must be specified by the caller, an InvalidKeyException is raised.

Java documentation for javax.crypto.ExemptionMechanismSpi.engineInit(java.security.Key).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

EngineInit(IKey, AlgorithmParameters)

Initializes this exemption mechanism with a key and a set of algorithm parameters.

[Android.Runtime.Register("engineInit", "(Ljava/security/Key;Ljava/security/AlgorithmParameters;)V", "GetEngineInit_Ljava_security_Key_Ljava_security_AlgorithmParameters_Handler")]
protected abstract void EngineInit (Java.Security.IKey? key, Java.Security.AlgorithmParameters? params);
[<Android.Runtime.Register("engineInit", "(Ljava/security/Key;Ljava/security/AlgorithmParameters;)V", "GetEngineInit_Ljava_security_Key_Ljava_security_AlgorithmParameters_Handler")>]
abstract member EngineInit : Java.Security.IKey * Java.Security.AlgorithmParameters -> unit

Parameters

key
IKey

the key for this exemption mechanism

params
AlgorithmParameters

the algorithm parameters

Attributes

Exceptions

if the key cannot be used to initialize this mechanism.

if the parameters cannot be used to initialize this mechanism.

if error(s) occur during initialization.

Remarks

Initializes this exemption mechanism with a key and a set of algorithm parameters.

If this exemption mechanism requires any algorithm parameters and params is null, the underlying exemption mechanism implementation is supposed to generate the required parameters itself (using provider-specific default values); in the case that algorithm parameters must be specified by the caller, an InvalidAlgorithmParameterException is raised.

Java documentation for javax.crypto.ExemptionMechanismSpi.engineInit(java.security.Key, java.security.AlgorithmParameters).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

EngineInit(IKey, IAlgorithmParameterSpec)

Initializes this exemption mechanism with a key and a set of algorithm parameters.

[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 (Java.Security.IKey? key, Java.Security.Spec.IAlgorithmParameterSpec? params);
[<Android.Runtime.Register("engineInit", "(Ljava/security/Key;Ljava/security/spec/AlgorithmParameterSpec;)V", "GetEngineInit_Ljava_security_Key_Ljava_security_spec_AlgorithmParameterSpec_Handler")>]
abstract member EngineInit : Java.Security.IKey * Java.Security.Spec.IAlgorithmParameterSpec -> unit

Parameters

key
IKey

the key for this exemption mechanism

params
IAlgorithmParameterSpec

the algorithm parameters

Attributes

Exceptions

if the key cannot be used to initialize this mechanism.

the the parameters cannot be used to initialize this mechanism.

if error(s) occur during initialization.

Remarks

Initializes this exemption mechanism with a key and a set of algorithm parameters.

If this exemption mechanism requires any algorithm parameters and params is null, the underlying exemption mechanism implementation is supposed to generate the required parameters itself (using provider-specific default values); in the case that algorithm parameters must be specified by the caller, an InvalidAlgorithmParameterException is raised.

Java documentation for javax.crypto.ExemptionMechanismSpi.engineInit(java.security.Key, java.security.spec.AlgorithmParameterSpec).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to