Share via


KeyFactorySpi.EngineGetKeySpec(IKey, Class) Method

Definition

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

[Android.Runtime.Register("engineGetKeySpec", "(Ljava/security/Key;Ljava/lang/Class;)Ljava/security/spec/KeySpec;", "GetEngineGetKeySpec_Ljava_security_Key_Ljava_lang_Class_Handler")]
[Java.Interop.JavaTypeParameters(new System.String[] { "T extends java.security.spec.KeySpec" })]
protected abstract Java.Lang.Object? EngineGetKeySpec (Java.Security.IKey? key, Java.Lang.Class? keySpec);
[<Android.Runtime.Register("engineGetKeySpec", "(Ljava/security/Key;Ljava/lang/Class;)Ljava/security/spec/KeySpec;", "GetEngineGetKeySpec_Ljava_security_Key_Ljava_lang_Class_Handler")>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T extends java.security.spec.KeySpec" })>]
abstract member EngineGetKeySpec : Java.Security.IKey * Java.Lang.Class -> Java.Lang.Object

Parameters

key
IKey

the key.

keySpec
Class

the specification class in which the key material should be returned.

Returns

the underlying key specification (key material) in an instance of the requested specification class.

Attributes

Remarks

Returns a specification (key material) of the given key object. keySpec identifies the specification class in which the key material should be returned. It could, for example, be DSAPublicKeySpec.class, to indicate that the key material should be returned in an instance of the DSAPublicKeySpec class.

Java documentation for java.security.KeyFactorySpi.engineGetKeySpec(java.security.Key, java.lang.Class<T>).

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