Share via


Signature.SetParameter Method

Definition

Overloads

SetParameter(IAlgorithmParameterSpec)

Initializes this signature engine with the specified parameter set.

SetParameter(String, Object)
Obsolete.

Sets the specified algorithm parameter to the specified value.

SetParameter(IAlgorithmParameterSpec)

Initializes this signature engine with the specified parameter set.

[Android.Runtime.Register("setParameter", "(Ljava/security/spec/AlgorithmParameterSpec;)V", "")]
public void SetParameter (Java.Security.Spec.IAlgorithmParameterSpec? params);
[<Android.Runtime.Register("setParameter", "(Ljava/security/spec/AlgorithmParameterSpec;)V", "")>]
member this.SetParameter : Java.Security.Spec.IAlgorithmParameterSpec -> unit

Parameters

params
IAlgorithmParameterSpec

the parameters

Attributes

Exceptions

if the parameter is invalid, already set or is not allowed to be changed.

Remarks

Initializes this signature engine with the specified parameter set.

Java documentation for java.security.Signature.setParameter(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

SetParameter(String, Object)

Caution

deprecated

Sets the specified algorithm parameter to the specified value.

[Android.Runtime.Register("setParameter", "(Ljava/lang/String;Ljava/lang/Object;)V", "")]
[System.Obsolete("deprecated")]
public void SetParameter (string? param, Java.Lang.Object? value);
[<Android.Runtime.Register("setParameter", "(Ljava/lang/String;Ljava/lang/Object;)V", "")>]
[<System.Obsolete("deprecated")>]
member this.SetParameter : string * Java.Lang.Object -> unit

Parameters

param
String

the string identifier of the parameter.

value
Object

the parameter value.

Attributes

Exceptions

if the parameter is invalid, already set or is not allowed to be changed.

Remarks

Sets the specified algorithm parameter to the specified value. This method supplies a general-purpose mechanism through which it is possible to set the various parameters of this object. A parameter may be any settable parameter for the algorithm, such as a parameter size, or a source of random bits for signature generation (if appropriate), or an indication of whether or not to perform a specific but optional computation. A uniform algorithm-specific naming scheme for each parameter is desirable but left unspecified at this time.

This member is deprecated. Use #setParameter(java.security.spec.AlgorithmParameterSpec) setParameter.

Java documentation for java.security.Signature.setParameter(java.lang.String, java.lang.Object).

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