ResourceSet
in package
A UMA resource set — an AXIAM resource seen through the Protection API (CONTRACT.md §20.1).
$id is the AXIAM resource id, not a parallel identifier: the same UUID is
directly usable as the $resourceId of a later RequestedPermission, and as
the resource id anywhere else in this SDK.
Table of Contents
Properties
- $id : string|null
- $name : string
- $resourceScopes : array<string|int, mixed>
- $type : string|null
Methods
- __construct() : mixed
Properties
$id read-only
public
string|null
$id
= null
$name read-only
public
string
$name
$resourceScopes read-only
public
array<string|int, mixed>
$resourceScopes
= []
$type read-only
public
string|null
$type
= null
Methods
__construct()
public
__construct(string $name[, string|null $id = null ][, string|null $type = null ][, array<int, string> $resourceScopes = [] ]) : mixed
Parameters
- $name : string
-
Human-readable name, shown in the admin UI.
- $id : string|null = null
-
Assigned by the server on registration; null on the way in.
- $type : string|null = null
-
Free-form resource type. Defaults server-side to
uma_resourcewhen null, so a resource server that omits it does not produce a row that sorts oddly next to hand-made ones. - $resourceScopes : array<int, string> = []
-
The scope names a resource server may ask for on this resource. Replaced wholesale by an update, never merged (§20.2 rule 8) — this SDK does not read the current scopes and fold them into an update payload as a convenience, because that would make removing a scope impossible through it.