| | |
| | | * |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2015 ForgeRock AS. |
| | | */ |
| | | |
| | | package org.opends.admin.ads.util; |
| | |
| | | return result; |
| | | } |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | /** {@inheritDoc} */ |
| | | public Socket createSocket(InetAddress address, int port) throws IOException { |
| | | return getInnerFactory().createSocket(address, port); |
| | | } |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | /** {@inheritDoc} */ |
| | | public Socket createSocket(InetAddress address, int port, |
| | | InetAddress clientAddress, int clientPort) throws IOException |
| | | { |
| | |
| | | clientPort); |
| | | } |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | /** {@inheritDoc} */ |
| | | public Socket createSocket(String host, int port) throws IOException |
| | | { |
| | | return getInnerFactory().createSocket(host, port); |
| | | } |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | /** {@inheritDoc} */ |
| | | public Socket createSocket(String host, int port, InetAddress clientHost, |
| | | int clientPort) throws IOException |
| | | { |
| | | return getInnerFactory().createSocket(host, port, clientHost, clientPort); |
| | | } |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | /** {@inheritDoc} */ |
| | | public Socket createSocket(Socket s, String host, int port, boolean autoClose) |
| | | throws IOException |
| | | { |
| | | return getInnerFactory().createSocket(s, host, port, autoClose); |
| | | } |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | /** {@inheritDoc} */ |
| | | public String[] getDefaultCipherSuites() |
| | | { |
| | | try |
| | |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | /** {@inheritDoc} */ |
| | | public String[] getSupportedCipherSuites() |
| | | { |
| | | try |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | // |
| | | // Private |
| | | // |
| | | |
| | | private SSLSocketFactory getInnerFactory() throws IOException { |
| | | if (innerFactory == null) |
| | | { |