Class HostnameVerifiers


  • public class HostnameVerifiers
    extends java.lang.Object
    Utility class to create HostnameVerifier.
    Author:
    Lijun Liao (xipki)
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static org.xipki.util.http.HostnameVerifiers.NoopHostnameVerifier NO_OP  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static javax.net.ssl.HostnameVerifier createHostnameVerifier​(java.lang.String hostnameVerifierType)
      Create HostnameVerifier.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • NO_OP

        public static final org.xipki.util.http.HostnameVerifiers.NoopHostnameVerifier NO_OP
    • Constructor Detail

      • HostnameVerifiers

        public HostnameVerifiers()
    • Method Detail

      • createHostnameVerifier

        public static javax.net.ssl.HostnameVerifier createHostnameVerifier​(java.lang.String hostnameVerifierType)
                                                                     throws ObjectCreationException
        Create HostnameVerifier.
        Parameters:
        hostnameVerifierType - valid values are no_op, default, or java:{qualified class name} (without the brackets)
        Returns:
        HostnameVerifier instance
        Throws:
        ObjectCreationException - If could not create HostnameVerifier