org.apache.http.conn.ssl
Class AbstractBaseHostnameVerifier

java.lang.Object
  extended by org.apache.http.conn.ssl.AbstractBaseHostnameVerifier
All Implemented Interfaces:
HostnameVerifier, X509HostnameVerifier
Direct Known Subclasses:
AbstractCommonHostnameVerifier

@Immutable
public abstract class AbstractBaseHostnameVerifier
extends Object
implements X509HostnameVerifier

Abstract base class for all standard X509HostnameVerifier implementations that provides common methods extracting X509Certificate instance to be verified from either SSLSocket or SSLSession.

Since:
4.4

Constructor Summary
AbstractBaseHostnameVerifier()
           
 
Method Summary
 boolean verify(String host, SSLSession session)
           
 void verify(String host, SSLSocket ssl)
          Verifies that the host name is an acceptable match with the server's authentication scheme based on the given SSLSocket.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.http.conn.ssl.X509HostnameVerifier
verify, verify
 

Constructor Detail

AbstractBaseHostnameVerifier

public AbstractBaseHostnameVerifier()
Method Detail

verify

public final void verify(String host,
                         SSLSocket ssl)
                  throws IOException
Description copied from interface: X509HostnameVerifier
Verifies that the host name is an acceptable match with the server's authentication scheme based on the given SSLSocket.

Specified by:
verify in interface X509HostnameVerifier
Parameters:
host - the host.
ssl - the SSL socket.
Throws:
IOException - if an I/O error occurs or the verification process fails.

verify

public final boolean verify(String host,
                            SSLSession session)
Specified by:
verify in interface HostnameVerifier


Copyright © 1999–2014 The Apache Software Foundation. All rights reserved.