org.apache.axis2.transport.nhttp
Class HostnameVerifier.Certificates

java.lang.Object
  extended by org.apache.axis2.transport.nhttp.HostnameVerifier.Certificates
Enclosing interface:
HostnameVerifier

public static class HostnameVerifier.Certificates
extends java.lang.Object


Constructor Summary
HostnameVerifier.Certificates()
           
 
Method Summary
static java.lang.String[] getCNs(java.security.cert.X509Certificate cert)
           
static java.lang.String[] getDNSSubjectAlts(java.security.cert.X509Certificate cert)
          Extracts the array of SubjectAlt DNS names from an X509Certificate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HostnameVerifier.Certificates

public HostnameVerifier.Certificates()
Method Detail

getCNs

public static java.lang.String[] getCNs(java.security.cert.X509Certificate cert)

getDNSSubjectAlts

public static java.lang.String[] getDNSSubjectAlts(java.security.cert.X509Certificate cert)
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.


Copyright © 2007 Apache Web Services Project. All Rights Reserved.