org.apache.axis2.transport.nhttp
Class HostnameVerifier.AbstractVerifier

java.lang.Object
  extended by org.apache.axis2.transport.nhttp.HostnameVerifier.AbstractVerifier
All Implemented Interfaces:
javax.net.ssl.HostnameVerifier
Enclosing interface:
HostnameVerifier

public abstract static class HostnameVerifier.AbstractVerifier
extends java.lang.Object
implements HostnameVerifier


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.axis2.transport.nhttp.HostnameVerifier
HostnameVerifier.AbstractVerifier, HostnameVerifier.Certificates
 
Field Summary
 
Fields inherited from interface org.apache.axis2.transport.nhttp.HostnameVerifier
ALLOW_ALL, DEFAULT, DEFAULT_AND_LOCALHOST, STRICT, STRICT_IE6
 
Constructor Summary
protected HostnameVerifier.AbstractVerifier()
           
 
Method Summary
static boolean acceptableCountryWildcard(java.lang.String cn)
           
 void check(java.lang.String[] host, javax.net.ssl.SSLSocket ssl)
           
 void check(java.lang.String[] hosts, java.lang.String[] cns, java.lang.String[] subjectAlts, boolean ie6, boolean strictWithSubDomains)
           
 void check(java.lang.String[] host, java.security.cert.X509Certificate cert)
           
 void check(java.lang.String host, javax.net.ssl.SSLSocket ssl)
           
 void check(java.lang.String host, java.lang.String[] cns, java.lang.String[] subjectAlts)
           
 void check(java.lang.String host, java.security.cert.X509Certificate cert)
           
static int countDots(java.lang.String s)
          Counts the number of dots "." in a string.
static boolean isIP4Address(java.lang.String cn)
           
static boolean isLocalhost(java.lang.String host)
           
 boolean verify(java.lang.String host, javax.net.ssl.SSLSession session)
          The javax.net.ssl.HostnameVerifier contract.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.axis2.transport.nhttp.HostnameVerifier
check
 

Constructor Detail

HostnameVerifier.AbstractVerifier

protected HostnameVerifier.AbstractVerifier()
Method Detail

verify

public boolean verify(java.lang.String host,
                      javax.net.ssl.SSLSession session)
The javax.net.ssl.HostnameVerifier contract.

Specified by:
verify in interface javax.net.ssl.HostnameVerifier
Parameters:
host - 'hostname' we used to create our socket
session - SSLSession with the remote server
Returns:
true if the host matched the one in the certificate.

check

public void check(java.lang.String host,
                  javax.net.ssl.SSLSocket ssl)
           throws java.io.IOException
Throws:
java.io.IOException

check

public void check(java.lang.String host,
                  java.security.cert.X509Certificate cert)
           throws javax.net.ssl.SSLException
Throws:
javax.net.ssl.SSLException

check

public void check(java.lang.String host,
                  java.lang.String[] cns,
                  java.lang.String[] subjectAlts)
           throws javax.net.ssl.SSLException
Throws:
javax.net.ssl.SSLException

check

public void check(java.lang.String[] host,
                  javax.net.ssl.SSLSocket ssl)
           throws java.io.IOException
Throws:
java.io.IOException

check

public void check(java.lang.String[] host,
                  java.security.cert.X509Certificate cert)
           throws javax.net.ssl.SSLException
Throws:
javax.net.ssl.SSLException

check

public void check(java.lang.String[] hosts,
                  java.lang.String[] cns,
                  java.lang.String[] subjectAlts,
                  boolean ie6,
                  boolean strictWithSubDomains)
           throws javax.net.ssl.SSLException
Throws:
javax.net.ssl.SSLException

isIP4Address

public static boolean isIP4Address(java.lang.String cn)

acceptableCountryWildcard

public static boolean acceptableCountryWildcard(java.lang.String cn)

isLocalhost

public static boolean isLocalhost(java.lang.String host)

countDots

public static int countDots(java.lang.String s)
Counts the number of dots "." in a string.

Parameters:
s - string to count dots from
Returns:
number of dots


Copyright © 2007 Apache Web Services Project. All Rights Reserved.