KeyFactory.GetKeySpec(IKey, Class) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.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.