KeyStore.SetCertificateEntry(String, Certificate) Method

Definition

Assigns the given trusted certificate to the given alias.

[Android.Runtime.Register("setCertificateEntry", "(Ljava/lang/String;Ljava/security/cert/Certificate;)V", "")]
public void SetCertificateEntry (string? alias, Java.Security.Cert.Certificate? cert);
[<Android.Runtime.Register("setCertificateEntry", "(Ljava/lang/String;Ljava/security/cert/Certificate;)V", "")>]
member this.SetCertificateEntry : string * Java.Security.Cert.Certificate -> unit

Parameters

alias
String

the alias name

cert
Certificate

the certificate

Attributes

Exceptions

if 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.

if alias is null.

Remarks

Java documentation for java.security.KeyStore.setCertificateEntry(java.lang.String, java.security.cert.Certificate).

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