This commit is contained in:
Sergey Ignatov
2014-07-10 18:57:44 +04:00
parent ac8bf1746a
commit b363ad7643
@@ -1,3 +1,18 @@
/*
* Copyright 2000-2014 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.intellij.execution.rmi.ssl;
import com.intellij.openapi.util.text.StringUtilRt;
@@ -47,18 +62,22 @@ public class SslSocketFactory extends SSLSocketFactory {
myFactory = ctx.getSocketFactory();
}
@NotNull
public Socket createSocket(InetAddress host, int port) throws IOException {
return myFactory.createSocket(host, port);
}
@NotNull
public Socket createSocket(String host, int port) throws IOException {
return myFactory.createSocket(host, port);
}
@NotNull
public Socket createSocket(String host, int port, InetAddress localHost, int localPort) throws IOException {
return myFactory.createSocket(host, port, localHost, localPort);
}
@NotNull
public Socket createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) throws IOException {
return myFactory.createSocket(address, port, localAddress, localPort);
}
@@ -67,10 +86,12 @@ public class SslSocketFactory extends SSLSocketFactory {
return myFactory.createSocket(socket, host, port, autoClose);
}
@NotNull
public String[] getDefaultCipherSuites() {
return myFactory.getDefaultCipherSuites();
}
@NotNull
public String[] getSupportedCipherSuites() {
return myFactory.getSupportedCipherSuites();
}