133
edits
(→PIN code pairing: Add AJAX protocol reference) |
(→Aja Protocol: Add encrypted control events) |
||
| Line 87: | Line 87: | ||
=== Ajax Protocol === | === Ajax Protocol === | ||
=== RSA public key exchange === | ==== RSA public key exchange ==== | ||
Request | Request | ||
{ | { | ||
| Line 99: | Line 99: | ||
error: <reason> | error: <reason> | ||
} | } | ||
=== Send symmetric key === | ==== Send symmetric key ==== | ||
Request | Request | ||
{ | { | ||
| Line 112: | Line 112: | ||
error: <reason> | error: <reason> | ||
} | } | ||
=== Poll UUID === | ==== Poll UUID ==== | ||
Request | Request | ||
{ | { | ||
| Line 130: | Line 130: | ||
done: false // Symmetic key unwrapping or encrypting UUID | done: false // Symmetic key unwrapping or encrypting UUID | ||
} | } | ||
=== Pair PIN code === | ==== Pair PIN code ==== | ||
Request | Request | ||
{ | { | ||
| Line 140: | Line 140: | ||
ticket: <ticket> | ticket: <ticket> | ||
} | } | ||
=== Poll pair result === | ==== Poll pair result ==== | ||
Request | Request | ||
{ | { | ||
| Line 155: | Line 155: | ||
done: false | done: false | ||
} | } | ||
==== Encrypted control events ==== | |||
Client sends encrypted event in query string as: | |||
<IP_Address>:<Port>?message=<base64> | |||
Response | |||
{ | |||
verified: <boolean> | |||
} | |||
After decrypted, following are control events: | |||
==== Touch Events ==== | ==== Touch Events ==== | ||
edits