GrantTokenBuilder
Entry point for a grantToken(...) call. Inherits the shared ttl/meta/channels/ channelGroups setters from AbstractGrantTokenBuilder (returning this neutral builder so a chain can start with any of them).
From here two grant paths are available and cannot be combined:
- the modern flat-list path via authorizedUserId and grants, which stays on this neutral builder — each TokenGrant carries its own bucket. This path is additive with the shared
channels(...)/channelGroups(...)setters (they all funnel into the same wire buckets); - the legacy (App Context v2 UUID) path via uuids, authorizedUUID, getAllChannels or getAllUUIDs, which returns GrantTokenObjectsBuilder.
uuids bucket and the getAllChannels/getAllUUIDs flags cannot be mixed with grants(...): UUIDGrant does not implement TokenGrant, the flat-list overload has no category flags, and combining them is rejected at request time.Functions
Link copied to clipboard
Sets the authorized principal for the modern flat-list grant path.
Link copied to clipboard
Sets the authorized principal for a legacy (App Context v2 UUID) grant and enters the legacy grant path, where
uuids(...) grants can be supplied.Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Set to
true to allow listing all channel metadata on the keyset (getAllChannelMetadata).Link copied to clipboard
Set to
true to allow listing all uuid metadata on the keyset (getAllUUIDMetadata).Link copied to clipboard
Supplies the flat list of grants for the modern grant path.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Allows to override certain configuration options (see com.pubnub.api.v2.PNConfigurationOverride.Builder) for this request only.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard