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

What a receiver announces in the TXT record of its mDNS service, as hints (nothing here is authenticated). More...

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

Public Member Functions

boolean equals (Object other)
 
int hashCode ()
 
Integer getProtocolVersion ()
 The highest protocol version the receiver says it speaks (v or version), or null.
 
String getFingerprint ()
 The announced fingerprint of the receiver's certificate (base64 of 32 bytes), or null.
 
String getAppName ()
 
String getAppVersion ()
 

Static Public Member Functions

static FCastServiceTxt parse (Map< String, byte[]> attributes)
 

Static Public Attributes

static final FCastServiceTxt EMPTY = new FCastServiceTxt(null, null, null, null)
 No hints.
 

Detailed Description

What a receiver announces in the TXT record of its mDNS service, as hints (nothing here is authenticated).

The desktop receiver sets v (the highest protocol version) and fp (base64 SHA-256 of the certificate's public key, for the v4 pin); the Android receiver sets version, appName and appVersion (docs/tech.md). Keys are case insensitive, every value is cut and cleaned, a value of the wrong shape is ignored, at most 32 attributes are read. Immutable.

Member Function Documentation

◆ getFingerprint()

String de.yaacc.fcast.discovery.FCastServiceTxt.getFingerprint ( )

The announced fingerprint of the receiver's certificate (base64 of 32 bytes), or null.

Unauthenticated: the pin of v4 needs a trusted channel.

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

Here is the caller graph for this function:

◆ getProtocolVersion()

Integer de.yaacc.fcast.discovery.FCastServiceTxt.getProtocolVersion ( )

The highest protocol version the receiver says it speaks (v or version), or null.

A hint only.

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

Here is the caller graph for this function:

◆ parse()

static FCastServiceTxt de.yaacc.fcast.discovery.FCastServiceTxt.parse ( Map< String, byte[]> attributes)
static
Parameters
attributesthe TXT attributes as the platform gives them (NsdServiceInfo.getAttributes()); may be null; a value may be null (a flag)
Here is the call graph for this function:

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