다음을 통해 공유


KeyFactory.GeneratePublic(IKeySpec) Method

Definition

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

[Android.Runtime.Register("generatePublic", "(Ljava/security/spec/KeySpec;)Ljava/security/PublicKey;", "")]
public Java.Security.IPublicKey? GeneratePublic (Java.Security.Spec.IKeySpec? keySpec);
[<Android.Runtime.Register("generatePublic", "(Ljava/security/spec/KeySpec;)Ljava/security/PublicKey;", "")>]
member this.GeneratePublic : 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.KeyFactory.generatePublic(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