public static class SSLHostnameVerifier.Certificates extends Object
Constructor and Description |
---|
Certificates() |
Modifier and Type | Method and Description |
---|---|
static String[] |
getCNs(X509Certificate cert) |
static String[] |
getDNSSubjectAlts(X509Certificate cert)
Extracts the array of SubjectAlt DNS names from an X509Certificate.
|
public static String[] getCNs(X509Certificate cert)
public static String[] getDNSSubjectAlts(X509Certificate cert)
Note: Java doesn't appear able to extract international characters from the SubjectAlts. It can only extract international characters from the CN field.
(Or maybe the version of OpenSSL I'm using to test isn't storing the international characters correctly in the SubjectAlts?).
cert
- X509CertificateCopyright © 2008–2021 Apache Software Foundation. All rights reserved.