|
YAACC - UPNP Client and Server
|
The part of a client's connection that pairs with a code (issue #325, task 11.1), shared by the player session and the controller session: what the client offers, its pairing window and the display of the code, and the attempt that runs on this connection. More...

Public Member Functions | |
| void | configure (CodePairingClient.Offer offer, PairingWindow window, CodePairingClient.Emitter emitter) |
| What the client offers, its pairing window (the gesture gate) and where the code of a dynamic attempt is shown. | |
| CodePairingClient.Offer | offer () |
| What the client offers, or null (then the hello lists the Pairing PSK only). | |
| boolean | offers (String method, SendspinPsk.Category matched) |
| True if the server may pick this method here: the client offers it and the connection is unpaired (code pairing needs the Sentinel). | |
| void | start (SecureChannel channel, SecureRandom random, int activationIndex, String method, String format) throws IOException |
| The server activated a code method: the attempt starts on this connection. | |
| boolean | has () |
| True if an attempt belongs to this connection (it has been started and not finished or given up). | |
| boolean | isRunning () |
| True while an attempt is under way. | |
| void | onWindowOpened () |
| The operator's gesture opened the window: an attempt that waited for it starts now. | |
| void | onMessage (String type, JSONObject payload) throws IOException, ProtocolException |
A message of the attempt (server/pair-init, -auth, -confirm). | |
| byte[] | finish (JSONObject payload) throws IOException, ProtocolException |
server/pair-finalize of an attempt: the Pairing PSK it made (the caller keeps it and wipes it), or null if the attempt did not end well. | |
| void | abort (JSONObject payload) throws IOException, ProtocolException |
pair/abort: the attempt is given up. | |
The part of a client's connection that pairs with a code (issue #325, task 11.1), shared by the player session and the controller session: what the client offers, its pairing window and the display of the code, and the attempt that runs on this connection.
The connection hands the messages of the pairing to it and takes the Pairing PSK from it when the attempt is done.
| void de.yaacc.sendspin.client.CodePairingSlot.configure | ( | CodePairingClient.Offer | offer, |
| PairingWindow | window, | ||
| CodePairingClient.Emitter | emitter ) |
What the client offers, its pairing window (the gesture gate) and where the code of a dynamic attempt is shown.
Before the start.
Referenced by de.yaacc.sendspin.client.ControllerSession.setCodePairing(), and de.yaacc.sendspin.client.PlayerSession.setCodePairing().

| byte[] de.yaacc.sendspin.client.CodePairingSlot.finish | ( | JSONObject | payload | ) | throws IOException, ProtocolException |
server/pair-finalize of an attempt: the Pairing PSK it made (the caller keeps it and wipes it), or null if the attempt did not end well.
The attempt is over either way.
