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

Syntax

[Android.Runtime.Register("getKeySpec", "(Ljava/security/Key;Ljava/security/Provider;)Ljava/security/spec/PKCS8EncodedKeySpec;", "GetGetKeySpec_Ljava_security_Key_Ljava_security_Provider_Handler")]
public virtual Java.Security.Spec.PKCS8EncodedKeySpec GetKeySpec (Java.Security.IKey decryptKey, Java.Security.Provider provider)

Parameters

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

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
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 provider 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