Compartilhar via


KeyPairGeneratorSpi.GenerateKeyPair Method

Definition

Generates a key pair.

[Android.Runtime.Register("generateKeyPair", "()Ljava/security/KeyPair;", "GetGenerateKeyPairHandler")]
public abstract Java.Security.KeyPair? GenerateKeyPair ();
[<Android.Runtime.Register("generateKeyPair", "()Ljava/security/KeyPair;", "GetGenerateKeyPairHandler")>]
abstract member GenerateKeyPair : unit -> Java.Security.KeyPair

Returns

the newly generated KeyPair

Attributes

Remarks

Generates a key pair. Unless an initialization method is called using a KeyPairGenerator interface, algorithm-specific defaults will be used. This will generate a new key pair every time it is called.

Java documentation for java.security.KeyPairGeneratorSpi.generateKeyPair().

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