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

Syntax

[Android.Runtime.Register("getKeySpec", "(Ljavax/crypto/Cipher;)Ljava/security/spec/PKCS8EncodedKeySpec;", "GetGetKeySpec_Ljavax_crypto_Cipher_Handler")]
public virtual Java.Security.Spec.PKCS8EncodedKeySpec GetKeySpec (Cipher cipher)

Parameters

cipher
the cipher initialized for decrypting the encrypted data.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Security.Spec.InvalidKeySpecExceptionif the specified cipher is not suited to decrypt the encrypted data.
Java.Lang.NullPointerExceptionif cipher is null.

Remarks

Returns the PKCS8EncodedKeySpec object extracted from the encrypted data.

The cipher must be initialize in either Cipher.DECRYPT_MODE or Cipher.UNWRAP_MODE with the same parameters and key used for encrypting this.

[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