Package org.apache.hadoop.security.ssl
Class SSLHostnameVerifier.Certificates
java.lang.Object
org.apache.hadoop.security.ssl.SSLHostnameVerifier.Certificates
- Enclosing interface:
- SSLHostnameVerifier
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String[]getCNs(X509Certificate cert) static String[]Extracts the array of SubjectAlt DNS names from an X509Certificate.
-
Constructor Details
-
Certificates
public Certificates()
-
-
Method Details
-
getCNs
-
getDNSSubjectAlts
Extracts the array of SubjectAlt DNS names from an X509Certificate. Returns null if there aren't any.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?).
- Parameters:
cert- X509Certificate- Returns:
- Array of SubjectALT DNS names stored in the certificate.
-