Udostępnij za pośrednictwem


SecretKeyFactorySpi.EngineTranslateKey(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("engineTranslateKey", "(Ljavax/crypto/SecretKey;)Ljavax/crypto/SecretKey;", "GetEngineTranslateKey_Ljavax_crypto_SecretKey_Handler")]
protected abstract Javax.Crypto.ISecretKey? EngineTranslateKey (Javax.Crypto.ISecretKey? key);
[<Android.Runtime.Register("engineTranslateKey", "(Ljavax/crypto/SecretKey;)Ljavax/crypto/SecretKey;", "GetEngineTranslateKey_Ljavax_crypto_SecretKey_Handler")>]
abstract member EngineTranslateKey : 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.SecretKeyFactorySpi.engineTranslateKey(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