Android Guides | Samples

Javax.Crypto.SecretKeyFactory.TranslateKey Method

Translates the specified secret key into an instance of the corresponding key from the provider of this key factory.

Syntax

[Android.Runtime.Register("translateKey", "(Ljavax/crypto/SecretKey;)Ljavax/crypto/SecretKey;", "")]
public ISecretKey TranslateKey (ISecretKey key)

Parameters

key
the secret key to translate.

Exceptions

TypeReason
InvalidKeyExceptionif the specified key cannot be translated using this key factory.

Remarks

Translates the specified secret key into an instance of the corresponding key from the provider of this key factory.

[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