KeyFactorySpi.EngineGeneratePublic(IKeySpec) Method

Definition

Generates a public key object from the provided key specification (key material).

[Android.Runtime.Register("engineGeneratePublic", "(Ljava/security/spec/KeySpec;)Ljava/security/PublicKey;", "GetEngineGeneratePublic_Ljava_security_spec_KeySpec_Handler")]
protected abstract Java.Security.IPublicKey? EngineGeneratePublic (Java.Security.Spec.IKeySpec? keySpec);
[<Android.Runtime.Register("engineGeneratePublic", "(Ljava/security/spec/KeySpec;)Ljava/security/PublicKey;", "GetEngineGeneratePublic_Ljava_security_spec_KeySpec_Handler")>]
abstract member EngineGeneratePublic : Java.Security.Spec.IKeySpec -> Java.Security.IPublicKey

Parameters

keySpec
IKeySpec

the specification (key material) of the public key.

Returns

the public key.

Attributes

Exceptions

if the specified keySpec is invalid.

Remarks

Generates a public key object from the provided key specification (key material).

Java documentation for java.security.KeyFactorySpi.engineGeneratePublic(java.security.spec.KeySpec).

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