< prev index next >

src/java.base/share/classes/javax/net/ssl/SSLSocket.java

Print this page

        

*** 467,476 **** --- 467,500 ---- public abstract void removeHandshakeCompletedListener( HandshakeCompletedListener listener); /** + * Registers an event listener to get information or modify + * the control flow of an ongoing SSL handshake. + * + * @param listener the object providing callback methods. + * @throws IllegalArgumentException if the argument is null. + * @see #removeHandshakeListener(HandshakeListener) + */ + public abstract void addHandshakeListener( + HandshakeListener listener); + + + /** + * Removes a previously registered HandshakeListener event listener. + * + * @param listener the object providing callback methods. + * @throws IllegalArgumentException if the listener is not registered, + * or the argument is null. + * @see #addHandshakeListener(HandshakeListener) + */ + public abstract void removeHandshakeListener( + HandshakeListener listener); + + + /** * Starts an SSL handshake on this connection. Common reasons include * a need to use new encryption keys, to change cipher suites, or to * initiate a new session. To force complete reauthentication, the * current session could be invalidated before starting this handshake. *
*** 743,753 **** */ public String getHandshakeApplicationProtocol() { throw new UnsupportedOperationException(); } - /** * Registers a callback function that selects an application protocol * value for a SSL/TLS/DTLS handshake. * The function overrides any values supplied using * {@link SSLParameters#setApplicationProtocols --- 767,776 ----
< prev index next >