com.sap.security.core.server.https
Interface HostnameVerifier

All Known Implementing Classes:
DefaultHostnameVerifier

public interface HostnameVerifier

HostnameVerifier provides a callback mechanism so that implementers of this interface can supply a policy for handling the case where the host to connect to and the server name from the certificate mismatch.

Copyright (c) 2003 SAP AG.


Method Summary
 boolean verify(String urlHostname, String certHostname)
          Compares the hostname with the name from server certificate.
 

Method Detail

verify

public boolean verify(String urlHostname,
                      String certHostname)
Compares the hostname with the name from server certificate.
Parameters:
urlHostname - the hostname
certHostname - the name from server certifiate
Returns:
true if the hostname is acceptable or if the connection should be established anyway.