1
0
mirror of https://github.com/Mojang/bedrock-protocol-docs.git synced 2025-07-17 14:34:58 +00:00
Files
bedrock-protocol-docs/html/svg/ServerToClientHandshakePacket.svg
2024-07-17 13:35:22 -07:00

53 lines
2.6 KiB
XML

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 11.0.0 (20240428.1522)
-->
<!-- Title: ServerToClientHandshakePacket Pages: 1 -->
<svg width="600pt" height="44pt"
viewBox="0.00 0.00 599.95 44.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 40)">
<title>ServerToClientHandshakePacket</title>
<polygon fill="white" stroke="none" points="-4,4 -4,-40 595.95,-40 595.95,4 -4,4"/>
<!-- 0 -->
<!-- name: &quot;ServerToClientHandshakePacket&quot;, typeName: &quot;&quot;, id: 0, branchId: 3, recurseId: &#45;1, attributes: 0, notes: &quot;&quot; -->
<g id="node1" class="node">
<title>0</title>
<ellipse fill="none" stroke="black" cx="132.9" cy="-18" rx="132.9" ry="18"/>
<text text-anchor="middle" x="132.9" y="-12.57" font-family="Times New Roman,serif" font-size="14.00">ServerToClientHandshakePacket</text>
</g>
<!-- 1 -->
<!-- name: &quot;Handshake WebToken&quot;, typeName: &quot;&quot;, id: 1, branchId: 0, recurseId: &#45;1, attributes: 0, notes: &quot;Base64 encoded JSON Web Token that contains the other relevant client properties.
Properties Include:
&#39;salt&#39; = (for use in encryption)
The public key used to compute the shared secret for encryption is embedded in the header of the token. It&#39;s the signer public key (json value of &#39;x5u&#39;)&quot; -->
<g id="node2" class="node">
<title>1</title>
<ellipse fill="none" stroke="black" cx="397.77" cy="-18" rx="95.97" ry="18"/>
<text text-anchor="middle" x="397.77" y="-12.57" font-family="Times New Roman,serif" font-size="14.00">Handshake WebToken</text>
</g>
<!-- 0&#45;&gt;1 -->
<g id="edge1" class="edge">
<title>0&#45;&gt;1</title>
<path fill="none" stroke="black" d="M266.11,-18C274.09,-18 282.08,-18 289.94,-18"/>
<polygon fill="black" stroke="black" points="289.85,-21.5 299.85,-18 289.85,-14.5 289.85,-21.5"/>
</g>
<!-- 2 -->
<!-- name: &quot;string&quot;, typeName: &quot;&quot;, id: 2, branchId: 0, recurseId: &#45;1, attributes: 512, notes: &quot;&quot; -->
<g id="node3" class="node">
<title>2</title>
<ellipse fill="none" stroke="black" cx="560.85" cy="-18" rx="31.1" ry="18"/>
<text text-anchor="middle" x="560.85" y="-12.57" font-family="Times New Roman,serif" font-size="14.00">string</text>
</g>
<!-- 1&#45;&gt;2 -->
<g id="edge2" class="edge">
<title>1&#45;&gt;2</title>
<path fill="none" stroke="black" d="M493.87,-18C502.27,-18 510.46,-18 518.04,-18"/>
<polygon fill="black" stroke="black" points="517.89,-21.5 527.89,-18 517.89,-14.5 517.89,-21.5"/>
</g>
</g>
</svg>