Java.Security.KeyStore.SetCertificateEntry Method
Associates the given alias with a certificate.

Syntax

[Android.Runtime.Register("setCertificateEntry", "(Ljava/lang/String;Ljava/security/cert/Certificate;)V", "")]
public void SetCertificateEntry (string alias, Java.Security.Cert.Certificate cert)

Parameters

alias
the alias for the certificate.
cert
the certificate.

Exceptions

TypeReason
Java.Security.KeyStoreExceptionif this KeyStore is not initialized, or an existing alias is not associated to an entry containing a trusted certificate, or this method fails for any other reason.
Java.Lang.NullPointerExceptionif alias is null.

Remarks

Associates the given alias with a certificate.

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