psl.worklets
Class WVM_HostnameVerifier

java.lang.Object
  |
  +--psl.worklets.WVM_HostnameVerifier
All Implemented Interfaces:
javax.net.ssl.HostnameVerifier

class WVM_HostnameVerifier
extends java.lang.Object
implements javax.net.ssl.HostnameVerifier

Allows different hosts to load classes. This class is dynamically instantiated when the sending WVM hostname is not recognized from the CA certificates or keysfile and the receiving WVM needs to verify the sending WVM.


Constructor Summary
(package private) WVM_HostnameVerifier()
           
 
Method Summary
 boolean verify(java.lang.String hostname, javax.net.ssl.SSLSession session)
          Verifies whether the given hostname should be trusted.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WVM_HostnameVerifier

WVM_HostnameVerifier()
Method Detail

verify

public boolean verify(java.lang.String hostname,
                      javax.net.ssl.SSLSession session)
Verifies whether the given hostname should be trusted. This class uses the names listed in the system properties WVM_HOSTS_ALLOW and WVM_HOSTS_DENY to verify the hosts. If no hosts are specified in either system property then the default is to return false. (more secure)

Specified by:
verify in interface javax.net.ssl.HostnameVerifier
Returns:
true if the hostname can be trusted