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

Syntax

[Android.Runtime.Register("engineSetKeyEntry", "(Ljava/lang/String;[B[Ljava/security/cert/Certificate;)V", "GetEngineSetKeyEntry_Ljava_lang_String_arrayBarrayLjava_security_cert_Certificate_Handler")]
public abstract void EngineSetKeyEntry (string alias, byte[] key, Java.Security.Cert.Certificate[] chain)

Parameters

alias
the alias for the key.
key
the key in an encoded format.
chain
the certificate chain.

Exceptions

TypeReason
Java.Security.KeyStoreExceptionif this operation fails.
Java.Lang.IllegalArgumentExceptionif key is a PrivateKey and chain does.

Remarks

Associates the given alias with a key and a 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