373572: fix jdk7/macos ssl issue leading to ConnectHandlerSSLTest failures

Change-Id: I4056d686edffe073443bb40d6f0078d9aa7a7fa6
This commit is contained in:
Thomas Becker 2012-03-07 19:09:29 +01:00
parent 5416b93c7e
commit 511f4ea957
1 changed files with 5 additions and 1 deletions

View File

@ -178,22 +178,26 @@ public class ConnectHandlerSSLTest extends AbstractConnectHandlerTest
private class AlwaysTrustManager implements X509TrustManager
{
@Override
public void checkClientTrusted(X509Certificate[] x509Certificates, String s) throws CertificateException
{
}
@Override
public void checkServerTrusted(X509Certificate[] x509Certificates, String s) throws CertificateException
{
}
@Override
public X509Certificate[] getAcceptedIssuers()
{
return null;
return new X509Certificate[]{};
}
}
private static class ServerHandler extends AbstractHandler
{
@Override
public void handle(String target, Request request, HttpServletRequest httpRequest, HttpServletResponse httpResponse) throws IOException, ServletException
{
request.setHandled(true);