KeyStore.GetCertificateAlias(Certificate) Method

Definition

Returns the (alias) name of the first keystore entry whose certificate matches the given certificate.

[Android.Runtime.Register("getCertificateAlias", "(Ljava/security/cert/Certificate;)Ljava/lang/String;", "")]
public string? GetCertificateAlias (Java.Security.Cert.Certificate? cert);
[<Android.Runtime.Register("getCertificateAlias", "(Ljava/security/cert/Certificate;)Ljava/lang/String;", "")>]
member this.GetCertificateAlias : Java.Security.Cert.Certificate -> string

Parameters

cert
Certificate

the certificate to match with.

Returns

String

the alias name of the first entry with a matching certificate, or null if no such entry exists in this keystore.

Attributes

Exceptions

if this KeyStore is not initialized.

Remarks

Java documentation for java.security.KeyStore.getCertificateAlias(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