AlgorithmParameterGenerator.Init Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Init(IAlgorithmParameterSpec) |
Initializes this parameter generator with a set of algorithm-specific parameter generation values. |
Init(Int32) |
Initializes this parameter generator for a certain size. |
Init(IAlgorithmParameterSpec, SecureRandom) |
Initializes this parameter generator with a set of algorithm-specific parameter generation values. |
Init(Int32, SecureRandom) |
Initializes this parameter generator for a certain size and source of randomness. |
Init(IAlgorithmParameterSpec)
Initializes this parameter generator with a set of algorithm-specific parameter generation values.
[Android.Runtime.Register("init", "(Ljava/security/spec/AlgorithmParameterSpec;)V", "")]
public void Init (Java.Security.Spec.IAlgorithmParameterSpec? genParamSpec);
[<Android.Runtime.Register("init", "(Ljava/security/spec/AlgorithmParameterSpec;)V", "")>]
member this.Init : Java.Security.Spec.IAlgorithmParameterSpec -> unit
Parameters
- genParamSpec
- IAlgorithmParameterSpec
the set of algorithm-specific parameter generation values.
- Attributes
Exceptions
if the specified parameters are not supported.
Remarks
Initializes this parameter generator with a set of algorithm-specific parameter generation values. To generate the parameters, the SecureRandom
implementation of the highest-priority installed provider is used as the source of randomness. (If none of the installed providers supply an implementation of SecureRandom
, a system-provided source of randomness is used.)
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(Int32)
Initializes this parameter generator for a certain size.
[Android.Runtime.Register("init", "(I)V", "")]
public void Init (int size);
[<Android.Runtime.Register("init", "(I)V", "")>]
member this.Init : int -> unit
Parameters
- size
- Int32
the size (number of bits).
- Attributes
Remarks
Initializes this parameter generator for a certain size. To create the parameters, the SecureRandom
implementation of the highest-priority installed provider is used as the source of randomness. (If none of the installed providers supply an implementation of SecureRandom
, a system-provided source of randomness is used.)
Java documentation for java.security.AlgorithmParameterGenerator.init(int)
.
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(IAlgorithmParameterSpec, SecureRandom)
Initializes this parameter generator with a set of algorithm-specific parameter generation values.
[Android.Runtime.Register("init", "(Ljava/security/spec/AlgorithmParameterSpec;Ljava/security/SecureRandom;)V", "")]
public void Init (Java.Security.Spec.IAlgorithmParameterSpec? genParamSpec, Java.Security.SecureRandom? random);
[<Android.Runtime.Register("init", "(Ljava/security/spec/AlgorithmParameterSpec;Ljava/security/SecureRandom;)V", "")>]
member this.Init : Java.Security.Spec.IAlgorithmParameterSpec * Java.Security.SecureRandom -> unit
Parameters
- genParamSpec
- IAlgorithmParameterSpec
the set of algorithm-specific parameter generation values.
- random
- SecureRandom
the source of randomness.
- Attributes
Exceptions
if the specified parameters are not supported.
Remarks
Initializes this parameter generator with a set of algorithm-specific parameter generation values.
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(Int32, SecureRandom)
Initializes this parameter generator for a certain size and source of randomness.
[Android.Runtime.Register("init", "(ILjava/security/SecureRandom;)V", "")]
public void Init (int size, Java.Security.SecureRandom? random);
[<Android.Runtime.Register("init", "(ILjava/security/SecureRandom;)V", "")>]
member this.Init : int * Java.Security.SecureRandom -> unit
Parameters
- size
- Int32
the size (number of bits).
- random
- SecureRandom
the source of randomness.
- Attributes
Remarks
Initializes this parameter generator for a certain size and source of randomness.
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.