KeyStore.GetCertificateChain(String) Method

Definition

Returns the certificate chain associated with the given alias.

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

Parameters

alias
String

the alias name

Returns

the certificate chain (ordered with the user's certificate first followed by zero or more certificate authorities), or null if the given alias does not exist or does not contain a certificate chain

Attributes

Exceptions

if this KeyStore is not initialized.

Remarks

Returns the certificate chain associated with the given alias. The certificate chain must have been associated with the alias by a call to setKeyEntry, or by a call to setEntry with a PrivateKeyEntry.

Java documentation for java.security.KeyStore.getCertificateChain(java.lang.String).

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