Javax.Crypto.EncryptedPrivateKeyInfo.GetKeySpec Method
Returns the PKCS8EncodedKeySpec object extracted from the encrypted data.

Syntax

[Android.Runtime.Register("getKeySpec", "(Ljava/security/Key;Ljava/lang/String;)Ljava/security/spec/PKCS8EncodedKeySpec;", "GetGetKeySpec_Ljava_security_Key_Ljava_lang_String_Handler")]
public virtual Java.Security.Spec.PKCS8EncodedKeySpec GetKeySpec (Java.Security.IKey decryptKey, string providerName)

Parameters

decryptKey
the key to decrypt the encrypted data with.
providerName
the name of a provider whose cipher implementation should be used.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Security.NoSuchProviderExceptionif no provider with providerName can be found.
Java.Security.NoSuchAlgorithmExceptionif no usable cipher can be found to decrypt the encrypted data.
Java.Security.InvalidKeyExceptionif decryptKey is not usable to decrypt the encrypted data.
Java.Lang.NullPointerExceptionif decryptKey or providerName is null .

Remarks

Returns the PKCS8EncodedKeySpec object extracted from the encrypted data.

[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