Class Overview
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.
The default implementation will deny such connections.
Summary
Public Methods |
boolean
|
verify(String hostname, SSLSession session)
Verify that the host name is an acceptable match with
the server's authentication scheme.
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this object.
|
boolean
|
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
void
|
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
final
Class<?>
|
getClass()
Returns the runtime class of this Object .
|
int
|
hashCode()
Returns a hash code value for the object.
|
final
void
|
notify()
Wakes up a single thread that is waiting on this object's
monitor.
|
final
void
|
notifyAll()
Wakes up all threads that are waiting on this object's monitor.
|
String
|
toString()
Returns a string representation of the object.
|
final
void
|
wait()
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object.
|
final
void
|
wait(long timeout, int nanos)
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object, or
some other thread interrupts the current thread, or a certain
amount of real time has elapsed.
|
final
void
|
wait(long timeout)
Causes the current thread to wait until either another thread invokes the
notify() method or the
notifyAll() method for this object, or a
specified amount of time has elapsed.
|
|
From interface
javax.net.ssl.HostnameVerifier
abstract
boolean
|
verify(String hostname, SSLSession session)
Verify that the host name is an acceptable match with
the server's authentication scheme.
|
|
Public Constructors
public
DefaultHostnameVerifier
()
Public Methods
public
boolean
verify
(String hostname, SSLSession session)
Verify that the host name is an acceptable match with
the server's authentication scheme.
Parameters
hostname
| the host name |
session
| SSLSession used on the connection to host |
Returns
- true if the host name is acceptable