KeyFactory.GetKeySpec(IKey, Class) Method

Definition

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

[Android.Runtime.Register("getKeySpec", "(Ljava/security/Key;Ljava/lang/Class;)Ljava/security/spec/KeySpec;", "")]
[Java.Interop.JavaTypeParameters(new System.String[] { "T extends java.security.spec.KeySpec" })]
public Java.Lang.Object? GetKeySpec (Java.Security.IKey? key, Java.Lang.Class? keySpec);
[<Android.Runtime.Register("getKeySpec", "(Ljava/security/Key;Ljava/lang/Class;)Ljava/security/spec/KeySpec;", "")>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T extends java.security.spec.KeySpec" })>]
member this.GetKeySpec : 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

Object

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

Attributes

Remarks

Java documentation for java.security.KeyFactory.getKeySpec(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