class ServerHandshake {

  public static ServerHandshake parse(final ByteBuf bb, final boolean isClient) {

    return new ServerHandshake(
        EncryptedExtensions.parse(bb, isClient),
        ServerCertificate.parse(bb),
        ServerCertificateVerify.parse(bb),
        ServerHandshakeFinished.parse(bb));
  }

  public  ServerHandshake(
      final EncryptedExtensions encryptedExtensions,
      final ServerCertificate serverCertificate,
      final ServerCertificateVerify serverCertificateVerify,
      final ServerHandshakeFinished serverHandshakeFinished);

}