AbstractVerifier.GetCNs(X509Certificate) Method

Definition

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

String[]

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.

Applies to