SecretKeyFactory.GenerateSecret(IKeySpec) SecretKeyFactory.GenerateSecret(IKeySpec) Method

Definition

Generate a secret key from the specified key specification.

[Android.Runtime.Register("generateSecret", "(Ljava/security/spec/KeySpec;)Ljavax/crypto/SecretKey;", "")]
public Javax.Crypto.ISecretKey GenerateSecret (Java.Security.Spec.IKeySpec keySpec);
member this.GenerateSecret : Java.Security.Spec.IKeySpec -> Javax.Crypto.ISecretKey

Parameters

keySpec
IKeySpec IKeySpec

the key specification.

Returns

Exceptions

if the specified key specification cannot be used to generate a secret key.

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