KeyStoreSpi.EngineGetCertificateAlias(Certificate) Method
Definition
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 (alias) name of the first keystore entry whose certificate matches the given certificate.
[Android.Runtime.Register("engineGetCertificateAlias", "(Ljava/security/cert/Certificate;)Ljava/lang/String;", "GetEngineGetCertificateAlias_Ljava_security_cert_Certificate_Handler")]
public abstract string? EngineGetCertificateAlias (Java.Security.Cert.Certificate? cert);
[<Android.Runtime.Register("engineGetCertificateAlias", "(Ljava/security/cert/Certificate;)Ljava/lang/String;", "GetEngineGetCertificateAlias_Ljava_security_cert_Certificate_Handler")>]
abstract member EngineGetCertificateAlias : Java.Security.Cert.Certificate -> string
Parameters
- cert
- Certificate
the certificate to match with.
Returns
the alias name of the first entry with matching certificate, or null if no such entry exists in this keystore.
- Attributes
Remarks
Returns the (alias) name of the first keystore entry whose certificate matches the given certificate.
This method attempts to match the given certificate with each keystore entry. If the entry being considered was created by a call to setCertificateEntry
, or created by a call to setEntry
with a TrustedCertificateEntry
, then the given certificate is compared to that entry's certificate.
If the entry being considered was created by a call to setKeyEntry
, or created by a call to setEntry
with a PrivateKeyEntry
, then the given certificate is compared to the first element of that entry's certificate chain.
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.