KeyStore.GetCertificateChain(String) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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[]
- alias
- String
the alias name
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
if this KeyStore
is not initialized.
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.