package org.apache.http.conn.ssl;
import javax.net.ssl.SSLException;
import org.apache.http.annotation.Immutable;
/**
* Override the StrictHostnameVerifier to hack around problems with the S3 SSL changes in 9/2012.
*
* WARNING: this will disable strict checking on all Apache HttpClient connections.
*/
@Immutable
public class StrictHostnameVerifier extends AbstractVerifier {
private X509HostnameVerifier deligater = new AllowAllHostnameVerifier();
@Override
public final void verify(final String host, final String[] cns, final String[] subjectAlts) throws SSLException {
deligater.verify(host, cns, subjectAlts);
}
@Override
public final String toString() {
return deligater.toString();
}
}