jdk/src/java.naming/share/classes/com/sun/jndi/ldap/ext/StartTlsResponseImpl.java
equal
deleted
inserted
replaced
295 |
295 |
296 /* |
296 /* |
297 * Returns the default SSL socket factory. |
297 * Returns the default SSL socket factory. |
298 * |
298 * |
299 * @return The default SSL socket factory. |
299 * @return The default SSL socket factory. |
300 * @throw IOException If TLS is not supported. |
300 * @throws IOException If TLS is not supported. |
301 */ |
301 */ |
302 private SSLSocketFactory getDefaultFactory() throws IOException { |
302 private SSLSocketFactory getDefaultFactory() throws IOException { |
303 |
303 |
304 if (defaultFactory != null) { |
304 if (defaultFactory != null) { |
305 return defaultFactory; |
305 return defaultFactory; |
312 /* |
312 /* |
313 * Start the TLS handshake and manipulate the input and output streams. |
313 * Start the TLS handshake and manipulate the input and output streams. |
314 * |
314 * |
315 * @param factory The SSL socket factory to use. |
315 * @param factory The SSL socket factory to use. |
316 * @return The SSL socket. |
316 * @return The SSL socket. |
317 * @throw IOException If an exception occurred while performing the |
317 * @throws IOException If an exception occurred while performing the |
318 * TLS handshake. |
318 * TLS handshake. |
319 */ |
319 */ |
320 private SSLSocket startHandshake(SSLSocketFactory factory) |
320 private SSLSocket startHandshake(SSLSocketFactory factory) |
321 throws IOException { |
321 throws IOException { |
322 |
322 |