KeyFactory.GeneratePrivate(IKeySpec) Method

Definition

Generates a instance of PrivateKey from the given key specification.

[Android.Runtime.Register("generatePrivate", "(Ljava/security/spec/KeySpec;)Ljava/security/PrivateKey;", "")]
public Java.Security.IPrivateKey GeneratePrivate (Java.Security.Spec.IKeySpec keySpec);
member this.GeneratePrivate : Java.Security.Spec.IKeySpec -> Java.Security.IPrivateKey

Parameters

keySpec
IKeySpec

the specification of the private key.

Returns

IPrivateKey
Attributes

Exceptions

if the specified keySpec is invalid.

Remarks

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