Sdílet prostřednictvím


SecretKeyFactory.TranslateKey(ISecretKey) Method

Definition

Translates a key object, whose provider may be unknown or potentially untrusted, into a corresponding key object of this secret-key factory.

[Android.Runtime.Register("translateKey", "(Ljavax/crypto/SecretKey;)Ljavax/crypto/SecretKey;", "")]
public Javax.Crypto.ISecretKey? TranslateKey (Javax.Crypto.ISecretKey? key);
[<Android.Runtime.Register("translateKey", "(Ljavax/crypto/SecretKey;)Ljavax/crypto/SecretKey;", "")>]
member this.TranslateKey : Javax.Crypto.ISecretKey -> Javax.Crypto.ISecretKey

Parameters

key
ISecretKey

the key whose provider is unknown or untrusted

Returns

the translated key

Attributes

Exceptions

if the specified key cannot be translated using this key factory.

Remarks

Translates a key object, whose provider may be unknown or potentially untrusted, into a corresponding key object of this secret-key factory.

Java documentation for javax.crypto.SecretKeyFactory.translateKey(javax.crypto.SecretKey).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to