Package org.conscrypt

Class ClientHandshakeImpl

java.lang.Object
org.conscrypt.HandshakeProtocol
org.conscrypt.ClientHandshakeImpl

public class ClientHandshakeImpl
extends HandshakeProtocol
Client side handshake protocol implementation. Handshake protocol operates on top of the Record Protocol. It is responsible for session negotiating. The implementation processes inbound server handshake messages, creates and sends respond messages. Outbound messages are supplied to Record Protocol. Detected errors are reported to the Alert protocol.
See Also:
TLS 1.0 spec., 7. The TLS Handshake Protocol
  • Method Details

    • start

      public void start()
      Starts handshake
      Specified by:
      start in class HandshakeProtocol
    • unwrap

      public void unwrap​(byte[] bytes)
      Processes inbound handshake messages
      Specified by:
      unwrap in class HandshakeProtocol
      Parameters:
      bytes -
    • unwrapSSLv2

      public void unwrapSSLv2​(byte[] bytes)
      Processes SSLv2 Hello message. SSLv2 client hello message message is an unexpected message for client side of handshake protocol. See TLS 1.0 spec., E.1. Version 2 client hello
      Specified by:
      unwrapSSLv2 in class HandshakeProtocol
      Parameters:
      bytes -
    • makeFinished

      protected void makeFinished()
      Creates and sends Finished message
    • receiveChangeCipherSpec

      public void receiveChangeCipherSpec()
      Processes ChangeCipherSpec message