Sdílet prostřednictvím


ExemptionMechanism.Init Method

Definition

Overloads

Init(IKey)

Initializes this exemption mechanism with a key.

Init(IKey, AlgorithmParameters)

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

Init(IKey, IAlgorithmParameterSpec)

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

Init(IKey)

Initializes this exemption mechanism with a key.

[Android.Runtime.Register("init", "(Ljava/security/Key;)V", "")]
public void Init (Java.Security.IKey? key);
[<Android.Runtime.Register("init", "(Ljava/security/Key;)V", "")>]
member this.Init : 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.ExemptionMechanism.init(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

Init(IKey, AlgorithmParameters)

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

[Android.Runtime.Register("init", "(Ljava/security/Key;Ljava/security/AlgorithmParameters;)V", "")]
public void Init (Java.Security.IKey? key, Java.Security.AlgorithmParameters? params);
[<Android.Runtime.Register("init", "(Ljava/security/Key;Ljava/security/AlgorithmParameters;)V", "")>]
member this.Init : 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.ExemptionMechanism.init(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

Init(IKey, IAlgorithmParameterSpec)

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

[Android.Runtime.Register("init", "(Ljava/security/Key;Ljava/security/spec/AlgorithmParameterSpec;)V", "")]
public void Init (Java.Security.IKey? key, Java.Security.Spec.IAlgorithmParameterSpec? params);
[<Android.Runtime.Register("init", "(Ljava/security/Key;Ljava/security/spec/AlgorithmParameterSpec;)V", "")>]
member this.Init : 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.ExemptionMechanism.init(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