package sun.security.ssl; import java.io.IOException; import javax.net.ssl.SSLException; import javax.net.ssl.SSLProtocolException; /** * @author Thibault Lalevée *
Override of the Handshaker class, in order to create a much simpler Handshaker than the existing ClientHandshaker * */ public class MyClientHandshaker extends Handshaker { /** *
Create an clientside handshaker object needed to calculate session keys and decode messages @param activeProtocols * Set of active protocols of the communication * @param activeProtocolVersion * The protocol used for this * @param socket * The socket associated with the handshaker */ public MyClientHandshaker(ProtocolList activeProtocols, ProtocolVersion activeProtocolVersion, SSLSocketImpl socket) { super(socket, null, activeProtocols, true, true, activeProtocolVersion, true, true, null, null); } @Override HandshakeMessage getKickstartMessage() throws SSLException { // TODO Auto-generated method stub return null; } @Override void processMessage(byte messageType, int messageLen) throws IOException { // TODO Auto-generated method stub } @Override void handshakeAlert(byte description) throws SSLProtocolException { // TODO Auto-generated method stub } }