Top Description Fields Constructors Methods
org.apache.http.conn.ssl

public Class NoopHostnameVerifier

extends Object
implements HostnameVerifier
Class Inheritance
All Implemented Interfaces
javax.net.ssl.HostnameVerifier
Annotations
@Contract
threading:IMMUTABLE
Imports
javax.net.ssl.HostnameVerifier, .SSLSession, org.apache.http.annotation.Contract, .ThreadingBehavior

The NO_OP HostnameVerifier essentially turns hostname verification off. This implementation is a no-op, and never throws the SSLException.
Since
4.4

Field Summary

Modifier and TypeField and Description
public static final NoopHostnameVerifier

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public final String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
public boolean
verify(final String
the host name
s
,
final SSLSession
SSLSession used on the connection to host
sslSession
)

Implements javax.net.ssl.HostnameVerifier.verify.

Verify that the host name is an acceptable match with the server's authentication scheme.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

INSTANCEback to summary
public static final NoopHostnameVerifier INSTANCE

Constructor Detail

NoopHostnameVerifierback to summary
public NoopHostnameVerifier()

Method Detail

toStringback to summary
public final String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override
verifyback to summary
public boolean verify(final String s, final SSLSession sslSession)

Implements javax.net.ssl.HostnameVerifier.verify.

Doc from javax.net.ssl.HostnameVerifier.verify.

Verify that the host name is an acceptable match with the server's authentication scheme.

Parameters
s:String

the host name

sslSession:SSLSession

SSLSession used on the connection to host

Returns:boolean

true if the host name is acceptable

Annotations
@Override