Sdílet prostřednictvím


SecretKeyFactorySpi.EngineGetKeySpec(ISecretKey, Class) Method

Definition

Returns a specification (key material) of the given key object in the requested format.

[Android.Runtime.Register("engineGetKeySpec", "(Ljavax/crypto/SecretKey;Ljava/lang/Class;)Ljava/security/spec/KeySpec;", "GetEngineGetKeySpec_Ljavax_crypto_SecretKey_Ljava_lang_Class_Handler")]
protected abstract Java.Security.Spec.IKeySpec? EngineGetKeySpec (Javax.Crypto.ISecretKey? key, Java.Lang.Class? keySpec);
[<Android.Runtime.Register("engineGetKeySpec", "(Ljavax/crypto/SecretKey;Ljava/lang/Class;)Ljava/security/spec/KeySpec;", "GetEngineGetKeySpec_Ljavax_crypto_SecretKey_Ljava_lang_Class_Handler")>]
abstract member EngineGetKeySpec : Javax.Crypto.ISecretKey * Java.Lang.Class -> Java.Security.Spec.IKeySpec

Parameters

key
ISecretKey

the key

keySpec
Class

the requested format in which the key material shall be returned

Returns

the underlying key specification (key material) in the requested format

Attributes

Exceptions

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

Remarks

Returns a specification (key material) of the given key object in the requested format.

Java documentation for javax.crypto.SecretKeyFactorySpi.engineGetKeySpec(javax.crypto.SecretKey, java.lang.Class<?>).

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