1 23 24 38 39 package com.sun.enterprise.admin.jmx.remote.https; 40 41 import javax.net.ssl.HostnameVerifier; 42 import javax.net.ssl.SSLSession; 43 44 52 public class SunOneBasicHostNameVerifier implements HostnameVerifier { 53 private final String host; 54 55 public SunOneBasicHostNameVerifier(final String host) { 56 if (host == null) 57 throw new IllegalArgumentException ("Null Arg"); 58 this.host = host; 59 } 60 61 public boolean verify(String hostName, SSLSession s) { 62 if (host.equals(hostName)) 64 return ( true ); 65 return ( false ); 66 } 67 } 68 | Popular Tags |