Language

KeyChainManager.GetCertificateChain Method

Definition

Returns the certificate chain of the given scoped certificate.

[Android.Runtime.Register("getCertificateChain", "(Ljava/lang/String;I)Ljava/util/List;", "", ApiSince=37)]
public System.Collections.Generic.IList<Java.Security.Cert.X509Certificate> GetCertificateChain(string alias, Android.Security.KeyChainManagerKeyPairScope scope);
[<Android.Runtime.Register("getCertificateChain", "(Ljava/lang/String;I)Ljava/util/List;", "", ApiSince=37)>]
member this.GetCertificateChain : string * Android.Security.KeyChainManagerKeyPairScope -> System.Collections.Generic.IList<Java.Security.Cert.X509Certificate>

Parameters

alias
String

The alias of the desired certificate chain.

scope
KeyChainManagerKeyPairScope

The scope to search (#KEYPAIR_SCOPE_USER or #KEYPAIR_SCOPE_DEVICE).

Returns

The list of X509Certificates representing the chain, or an empty list if no certificate exists for the given alias/scope or if access to the key is not granted.

Attributes

Remarks

Returns the certificate chain of the given scoped certificate. Callable by the application that installed the certificate, any app that has been granted access to the given alias, as well as DPCs and their delegates.

Android reference for android.security.KeyChainManager.getCertificateChain.

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