Javax.Crypto.CipherSpi.EngineUnwrap Method
Unwraps a key using this cipher instance.

Syntax

[Android.Runtime.Register("engineUnwrap", "([BLjava/lang/String;I)Ljava/security/Key;", "GetEngineUnwrap_arrayBLjava_lang_String_IHandler")]
protected virtual Java.Security.IKey EngineUnwrap (byte[] wrappedKey, string wrappedKeyAlgorithm, int wrappedKeyType)

Parameters

wrappedKey
the wrapped key to unwrap.
wrappedKeyAlgorithm
the algorithm for the wrapped key.
wrappedKeyType
the type of the wrapped key (one of: SECRET_KEY, PRIVATE_KEY or PUBLIC_KEY)

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Security.InvalidKeyExceptionif the wrappedKey cannot be unwrapped to a key of type wrappedKeyType for the wrappedKeyAlgorithm.
Java.Security.NoSuchAlgorithmExceptionif no provider can be found that can create a key of type wrappedKeyType for the wrappedKeyAlgorithm.

Remarks

Unwraps a key using this cipher instance.

This method has been added to this class (for backwards compatibility, it cannot be abstract). If this method is not overridden, it throws an UnsupportedOperationException.

[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