YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.fcast.discovery.FCastPinStore Class Reference

The fingerprints that came with an fcast://r/ link (task 7.2, D24): endpoint and key of a receiver, stored as one string, one line per receiver (<canonical endpoint>\t<base64 fingerprint>). More...

Collaboration diagram for de.yaacc.fcast.discovery.FCastPinStore:
Collaboration graph

Classes

enum  Result
 What put did. More...
 

Public Member Functions

 FCastPinStore (StringStore storage)
 
synchronized FCastPin get (FCastEndpoint endpoint)
 The stored key of the receiver (source LINK), or null.
 
synchronized Result put (FCastEndpoint endpoint, FCastPin pin)
 
synchronized boolean remove (FCastEndpoint endpoint)
 

Static Public Attributes

static final int MAX = 32
 The most receivers with a stored key (the manual list holds FCastStoredReceivers#MAX_MANUAL).
 

Detailed Description

The fingerprints that came with an fcast://r/ link (task 7.2, D24): endpoint and key of a receiver, stored as one string, one line per receiver (<canonical endpoint>\t<base64 fingerprint>).

Only a link can put an entry here: the link is the channel the network can not change (the v4 document's threat model), so what is stored is the strong pin. A damaged line is skipped, the list never grows over its cap ({@value MAX}; a new receiver pushes out nothing: it is refused), an endpoint is in it once. Thread safe. The fingerprint is public (it is announced by the receiver) but is not logged in full.

Member Function Documentation

◆ remove()

synchronized boolean de.yaacc.fcast.discovery.FCastPinStore.remove ( FCastEndpoint endpoint)
Returns
true if the receiver had a stored key

Referenced by de.yaacc.fcast.discovery.FCastPins.forget().

Here is the caller graph for this function:

The documentation for this class was generated from the following file: