View Javadoc
1   package net.trajano.commons.testing.internal;
2   
3   import javax.net.ssl.HostnameVerifier;
4   import javax.net.ssl.SSLSession;
5   
6   /**
7    * Host name verifier that does not perform any checks.
8    */
9   public class NullHostnameVerifier implements HostnameVerifier {
10  
11      /**
12       * Always return true.
13       * 
14       * @param hostname
15       *            hostname
16       * @param sslSession
17       *            SSL session
18       * @return true
19       */
20      @Override
21      public boolean verify(final String hostname, final SSLSession sslSession) {
22          return true;
23      }
24  }