Sdílet prostřednictvím


AbstractVerifier.GetDNSSubjectAlts(X509Certificate) Method

Definition

Extracts the array of SubjectAlt DNS names from an X509Certificate.

[Android.Runtime.Register("getDNSSubjectAlts", "(Ljava/security/cert/X509Certificate;)[Ljava/lang/String;", "")]
public static string[]? GetDNSSubjectAlts (Java.Security.Cert.X509Certificate? cert);
[<Android.Runtime.Register("getDNSSubjectAlts", "(Ljava/security/cert/X509Certificate;)[Ljava/lang/String;", "")>]
static member GetDNSSubjectAlts : Java.Security.Cert.X509Certificate -> string[]

Parameters

cert
X509Certificate

X509Certificate

Returns

String[]

Array of SubjectALT DNS names stored in the certificate.

Attributes

Remarks

Extracts the array of SubjectAlt DNS names from an X509Certificate. Returns null if there aren't any. <p/> Note: Java doesn't appear able to extract international characters from the SubjectAlts. It can only extract international characters from the CN field. <p/> (Or maybe the version of OpenSSL I'm using to test isn't storing the international characters correctly in the SubjectAlts?).

Java documentation for org.apache.http.conn.ssl.AbstractVerifier.getDNSSubjectAlts(java.security.cert.X509Certificate).

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