Java.Security.KeyStoreSpi.EngineSetKeyEntry Method
Associates the given alias with the key, password and certificate chain.

Syntax

[Android.Runtime.Register("engineSetKeyEntry", "(Ljava/lang/String;Ljava/security/Key;[C[Ljava/security/cert/Certificate;)V", "GetEngineSetKeyEntry_Ljava_lang_String_Ljava_security_Key_arrayCarrayLjava_security_cert_Certificate_Handler")]
public abstract void EngineSetKeyEntry (string alias, IKey key, char[] password, Java.Security.Cert.Certificate[] chain)

Parameters

alias
the alias for the key.
key
the key.
password
the password.
chain
the certificate chain.

Exceptions

TypeReason
Java.Security.KeyStoreExceptionif the specified key can not be protected, or if this operation fails for another reason.
Java.Lang.IllegalArgumentExceptionif key is a PrivateKey and chain does not contain any certificates.

Remarks

Associates the given alias with the key, password and certificate chain.

If the specified alias already exists, it will be reassigned.

[Android Documentation]

Requirements

Namespace: Java.Security
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1