AbstractVerifier.GetCNs(X509Certificate) 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.
Extracts the common names from a certificate subject.
[Android.Runtime.Register("getCNs", "(Ljava/security/cert/X509Certificate;)[Ljava/lang/String;", "")]
public static string[]? GetCNs(Java.Security.Cert.X509Certificate? cert);
[<Android.Runtime.Register("getCNs", "(Ljava/security/cert/X509Certificate;)[Ljava/lang/String;", "")>]
static member GetCNs : Java.Security.Cert.X509Certificate -> string[]
Parameters
- cert
- X509Certificate
The certificate from which to extract common names.
Returns
The extracted common names, or null when the subject contains none.
- Attributes
Remarks
Portions of this page are based on work created and shared by the Apache Software Foundation and used under the terms of the Apache License, Version 2.0.