YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.share.ProviderKeys Class Reference

Names the content provider behind an authority for the per-provider call gate (de.yaacc.share.ProviderCallGate). More...

Collaboration diagram for de.yaacc.share.ProviderKeys:
Collaboration graph

Static Public Member Functions

static String of (PackageManager packageManager, String authority)
 

Static Public Attributes

static final String UNRESOLVED = "unresolved"
 The one key of every provider whose owning package cannot be resolved.
 

Detailed Description

Names the content provider behind an authority for the per-provider call gate (de.yaacc.share.ProviderCallGate).

An app can declare many authorities, so the key is the package that owns the authority where the system tells us; one hostile app then keeps one place in the gate, not one per authority. If the authority cannot be resolved (not visible, unknown, the question failed) the key is ONE fixed key shared by all such providers (UNRESOLVED): the manifest has no <queries>, so a provider whose package is not visible could otherwise be asked under many authority spellings, and a permit lives as long as its call, so each stuck one would keep a place of its own. Unresolved providers therefore share one place (one such call at a time); that is the price of a bounded gate.

Member Function Documentation

◆ of()

static String de.yaacc.share.ProviderKeys.of ( PackageManager packageManager,
String authority )
static
Parameters
packageManagerthe package manager, may be null
authoritythe authority of the shared URI, may be null
Returns
a key that is never null for a non-null authority; null for a null authority

Referenced by de.yaacc.share.ContentDuration.read().

Here is the caller graph for this function:

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