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 ServerHandshaker * */ public class MyServerHandshaker extends Handshaker { /** *

Create an server side 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 MyServerHandshaker(ProtocolList activeProtocols, ProtocolVersion activeProtocolVersion, SSLSocketImpl socket) { super(socket, null, activeProtocols, true, false, activeProtocolVersion, false, 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 } }