Javax.Crypto.SealedObject.GetObject Method
Returns the wrapped object, decrypting it using the specified key.

Syntax

[Android.Runtime.Register("getObject", "(Ljava/security/Key;Ljava/lang/String;)Ljava/lang/Object;", "")]
public Java.Lang.Object GetObject (Java.Security.IKey key, string provider)

Parameters

key
the key to decrypt the data.
provider
the name of the provider that provides the cipher algorithm.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.IO.IOExceptionif deserialization fails.
Java.Lang.ClassNotFoundExceptionif deserialization fails.
Java.Security.NoSuchAlgorithmExceptionif the algorithm used to decrypt the data is not available.
Java.Security.NoSuchProviderExceptionif the specified provider is not available.
Java.Security.InvalidKeyExceptionif the specified key cannot be used to decrypt the data.

Remarks

Returns the wrapped object, decrypting it using the specified key. The specified provider is used to retrieve the cipher algorithm.

[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