|
YAACC - UPNP Client and Server
|
The id the phone gives a snapserver in its Hello (the client id every server and every controller of it shows). More...

Static Public Member Functions | |
| static String | newSecret (SecureRandom random) |
| A new random secret (32 hexadecimal characters) to be stored once per installation. | |
| static boolean | isSecret (String text) |
True for a secret as newSecret makes it. | |
| static String | deriveId (String secret) |
| static String | idOfSecret (String secretOrNull) |
| The id for a stored secret, for the code that only wants to recognise the app's own client. | |
The id the phone gives a snapserver in its Hello (the client id every server and every controller of it shows).
It is derived from a random secret of this installation only: the same id for every server, also a public address (the owner's decision, task 12.11), so the app can recognise its own client in the status of a server without a session and without knowing which server it was connected to. It is never the hardware id (Android does not give one, and the design forbids it), and it is a one-way function of the secret: the server learns that two of its clients are the same phone, and that two servers saw the same phone, nothing else. Earlier builds derived the id per server (secret and endpoint text); an entry they left on a server is a ghost once, which "Remove from server" clears. Group 9's idea of replacing the secret with the YAACC device UDN was not taken.
|
static |
| secret | the secret of this installation (isSecret) |
yaacc- and 16 hexadecimal characters: a one-way function of the secret and nothing else Referenced by de.yaacc.snapcast.client.SnapcastClientIdentity.idOfSecret(), and de.yaacc.snapcast.client.SnapcastClientIdentities.ownIds().

|
static |
The id for a stored secret, for the code that only wants to recognise the app's own client.
Referenced by de.yaacc.snapcast.client.SnapcastClientIdentities.ownId().

