Package org.conscrypt

Class ServerHandshakeImpl

java.lang.Object
org.conscrypt.HandshakeProtocol
org.conscrypt.ServerHandshakeImpl

public class ServerHandshakeImpl
extends HandshakeProtocol
Server side handshake protocol implementation. Handshake protocol operates on top of the Record Protocol. It responsible for negotiating a session. The implementation processes inbound client 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.4. Handshake protocol.
  • Constructor Details

    • ServerHandshakeImpl

      public ServerHandshakeImpl​(Object owner)
      Creates Server Handshake Implementation
      Parameters:
      owner -
  • Method Details

    • start

      public void start()
      Start session negotiation
      Specified by:
      start in class HandshakeProtocol
    • unwrap

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

      public void unwrapSSLv2​(byte[] bytes)
      Processes SSLv2 Hello message
      Specified by:
      unwrapSSLv2 in class HandshakeProtocol
      Parameters:
      bytes -
    • makeFinished

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

      public void receiveChangeCipherSpec()
      Processes inbound ChangeCipherSpec message