次の方法で共有


KeyPairGenerator.Initialize Method

Definition

Overloads

Initialize(IAlgorithmParameterSpec)

Initializes the key pair generator using the specified parameter set and the SecureRandom implementation of the highest-priority installed provider as the source of randomness.

Initialize(Int32)

Initializes the key pair generator for a certain keysize using a default parameter set and the SecureRandom implementation of the highest-priority installed provider as the source of randomness.

Initialize(Int32, SecureRandom)

Initializes the key pair generator for a certain keysize with the given source of randomness (and a default parameter set).

Initialize(IAlgorithmParameterSpec)

Initializes the key pair generator using the specified parameter set and the SecureRandom implementation of the highest-priority installed provider as the source of randomness.

[Android.Runtime.Register("initialize", "(Ljava/security/spec/AlgorithmParameterSpec;)V", "GetInitialize_Ljava_security_spec_AlgorithmParameterSpec_Handler")]
public virtual void Initialize (Java.Security.Spec.IAlgorithmParameterSpec? params);
[<Android.Runtime.Register("initialize", "(Ljava/security/spec/AlgorithmParameterSpec;)V", "GetInitialize_Ljava_security_spec_AlgorithmParameterSpec_Handler")>]
override this.Initialize : Java.Security.Spec.IAlgorithmParameterSpec -> unit

Parameters

params
IAlgorithmParameterSpec

the parameter set used to generate the keys.

Attributes

Exceptions

if the specified parameters are not supported

Remarks

Initializes the key pair generator using the specified parameter set and the SecureRandom implementation of the highest-priority installed provider as the source of randomness. (If none of the installed providers supply an implementation of SecureRandom, a system-provided source of randomness is used.)

This concrete method has been added to this previously-defined abstract class. This method calls the KeyPairGeneratorSpi KeyPairGeneratorSpi#initialize( java.security.spec.AlgorithmParameterSpec, java.security.SecureRandom) initialize method, passing it params and a source of randomness (obtained from the highest-priority installed provider or system-provided if none of the installed providers supply one). That initialize method always throws an UnsupportedOperationException if it is not overridden by the provider.

Added in 1.2.

Java documentation for java.security.KeyPairGenerator.initialize(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

Initialize(Int32)

Initializes the key pair generator for a certain keysize using a default parameter set and the SecureRandom implementation of the highest-priority installed provider as the source of randomness.

[Android.Runtime.Register("initialize", "(I)V", "GetInitialize_IHandler")]
public virtual void Initialize (int keysize);
[<Android.Runtime.Register("initialize", "(I)V", "GetInitialize_IHandler")>]
override this.Initialize : int -> unit

Parameters

keysize
Int32

the keysize. This is an algorithm-specific metric, such as modulus length, specified in number of bits.

Attributes

Remarks

Initializes the key pair generator for a certain keysize using a default parameter set and the SecureRandom implementation of the highest-priority installed provider 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.KeyPairGenerator.initialize(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

Initialize(Int32, SecureRandom)

Initializes the key pair generator for a certain keysize with the given source of randomness (and a default parameter set).

[Android.Runtime.Register("initialize", "(ILjava/security/SecureRandom;)V", "GetInitialize_ILjava_security_SecureRandom_Handler")]
public override void Initialize (int keysize, Java.Security.SecureRandom? random);
[<Android.Runtime.Register("initialize", "(ILjava/security/SecureRandom;)V", "GetInitialize_ILjava_security_SecureRandom_Handler")>]
override this.Initialize : int * Java.Security.SecureRandom -> unit

Parameters

keysize
Int32

the keysize. This is an algorithm-specific metric, such as modulus length, specified in number of bits.

random
SecureRandom

the source of randomness.

Attributes

Remarks

Initializes the key pair generator for a certain keysize with the given source of randomness (and a default parameter set).

Added in 1.2.

Java documentation for java.security.KeyPairGenerator.initialize(int, java.security.SecureRandom).

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