SecretKeyFactory.GetKeySpec(ISecretKey, Class) SecretKeyFactory.GetKeySpec(ISecretKey, Class) Method

Definition

Returns the key specification of the specified secret key.

[Android.Runtime.Register("getKeySpec", "(Ljavax/crypto/SecretKey;Ljava/lang/Class;)Ljava/security/spec/KeySpec;", "")]
public Java.Security.Spec.IKeySpec GetKeySpec (Javax.Crypto.ISecretKey key, Java.Lang.Class keySpec);
member this.GetKeySpec : Javax.Crypto.ISecretKey * Java.Lang.Class -> Java.Security.Spec.IKeySpec

Parameters

key
ISecretKey ISecretKey

the secret key to get the specification from.

keySpec
Class Class

the target key specification class.

Returns

Exceptions

if the specified secret key cannot be transformed into the requested key specification.

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