Javax.Crypto.SecretKeyFactory.GetKeySpec Method
Returns the key specification of the specified secret key.

Syntax

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

Parameters

key
the secret key to get the specification from.
keySpec
the target key specification class.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Security.Spec.InvalidKeySpecExceptionif the specified secret key cannot be transformed into the requested key specification.

Remarks

Returns the key specification of the specified secret key.

[Android Documentation]

Requirements

Namespace: Javax.Crypto
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1